View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/app-shells/zsh/files/_gentoolkit (-3 / +7 lines)
 Lines 4-10    Link Here 
#Function to show gensync overlays located in /etc/gensync
#Function to show gensync overlays located in /etc/gensync
_overlays(){
_overlays(){
    overlay=$(grep -h id= /etc/gensync/* | sed -e 's/id="\(.*\)"$/\1/')
    local overlay gensynclist gensync_individual
    gensynclist=(/etc/gensync/*.syncsource) 
    foreach gensync_individual ($gensynclist)
    	overlay=($overlay ${${${(M)${(f)"$(<$gensync_individual)"}##id=*}/id=\"/}%\"})
    end
    _tags overlay && { compadd "$@" ${(kv)=overlay} }
    _tags overlay && { compadd "$@" ${(kv)=overlay} }
}
}
 Lines 58-64    Link Here 
	'()'{--no-color,-C}'[turn off colours]:overlays:_overlays' \
	'()'{--no-color,-C}'[turn off colours]:overlays:_overlays' \
	'(- :)'{--help,-h}'[show help]' \
	'(- :)'{--help,-h}'[show help]' \
	'(- :)'{--version,-V}'[display version info]' \
	'(- :)'{--version,-V}'[display version info]' \
	'(- :)'':overlays:_overlays' 
	'(- :):overlays:_overlays' 
;;
;;
 qpkg)
 qpkg)
 Lines 68-74    Link Here 
  find=( --find-file -f --find-pattern -fp )
  find=( --find-file -f --find-pattern -fp )
  dups=( --dups -d --slot -s)
  dups=( --dups -d --slot -s)
  
  
       _arguments \
       _arguments -s \
    	"($check $excl $find $dups 1)"{--find-file,-f}"[finds package that owns file]:file:_files" \
    	"($check $excl $find $dups 1)"{--find-file,-f}"[finds package that owns file]:file:_files" \
	"($check $excl $find $dups 1)"{--find-pattern,-fp}"[finds package that owns file matching pattern]:pattern:" \
	"($check $excl $find $dups 1)"{--find-pattern,-fp}"[finds package that owns file matching pattern]:pattern:" \
	"($excl $check $arg $find --dups -d )"{--dups,-d}"[print packages that have multiple versions installed]" \
	"($excl $check $arg $find --dups -d )"{--dups,-d}"[print packages that have multiple versions installed]" \