Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 60530 | Differences between
and this patch

Collapse All | Expand All

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

Return to bug 60530