Lines 238-244
Link Here
|
238 |
fi ; done); |
238 |
fi ; done); |
239 |
else |
239 |
else |
240 |
if [[ ${cur} == */* ]]; then |
240 |
if [[ ${cur} == */* ]]; then |
241 |
words=$( for pd in ${portdir} ; do builtin cd ${pd}; compgen -X "*metadata.xml" -G "${cur}*" ; done)"${sysactions}""${eactions}"; |
241 |
words=$( eix "${cur}"|grep '^\*'|cut -c 3- )"${sysactions}""${eactions}"; |
242 |
else |
242 |
else |
243 |
local ww=$( for pd in ${portdir} ; do builtin cd ${pd} ; compgen -S '/' -G "${cur}*"; done)"${sysactions}""${eactions}"; |
243 |
local ww=$( for pd in ${portdir} ; do builtin cd ${pd} ; compgen -S '/' -G "${cur}*"; done)"${sysactions}""${eactions}"; |
244 |
ww="${ww} $( for pd in ${portdir} ; do if [[ -d ${pd}/profiles ]] ; then |
244 |
ww="${ww} $( for pd in ${portdir} ; do if [[ -d ${pd}/profiles ]] ; then |
Lines 266-272
Link Here
|
266 |
COMPREPLY=($(compgen -W "${words}" -- ${cur})); |
266 |
COMPREPLY=($(compgen -W "${words}" -- ${cur})); |
267 |
fi; |
267 |
fi; |
268 |
if [[ -z "${COMPREPLY}" ]]; then |
268 |
if [[ -z "${COMPREPLY}" ]]; then |
269 |
words="$( for pd in ${portdir} ; do builtin cd ${pd}; for i in [a-z]*-[a-z0-9]*/${cur}*; do [[ -d $i ]] && echo ${i##*/}; done ; done)"; |
269 |
words="$( eix ${cur}|grep '^\*'|sed 's@.*/@@' )"; |
270 |
COMPREPLY=($(compgen -W "${words}" -- ${cur})); |
270 |
COMPREPLY=($(compgen -W "${words}" -- ${cur})); |
271 |
fi; |
271 |
fi; |
272 |
return 0 |
272 |
return 0 |