Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 113749 Details for
Bug 171381
zsh-completion for eselect
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
a better zsh completion function for eselect
_eselect (text/plain), 1.13 KB, created by
David Durrleman
on 2007-03-19 02:20:44 UTC
(
hide
)
Description:
a better zsh completion function for eselect
Filename:
MIME Type:
Creator:
David Durrleman
Created:
2007-03-19 02:20:44 UTC
Size:
1.13 KB
patch
obsolete
>#compdef eselect ># ~/.zfunctions/_eselect ># David Durrleman ># ># Une complétion pour eselect, un utilitaire gentoo. > >_eselect () { > local globopts sedcmd modnames modopts > > globopts=("--no-colour[Disable coloured output]") > sedcmd="sed -n -e s/^[[:space:]]\+.*1m\([^[:space:]][[:alnum:]-]\+\).*[[:space:]]\+.*$/\1/p" > modnames=($(eselect list-modules | ${=sedcmd})) > > if ((CURRENT == 2)); then > _arguments -s \ > "$globopts[@]" \ > "*:portage:_values 'eselect modules' \$modnames[@]" && return 0 > elif ((CURRENT == 3)); then > if [[ $words[2] == --no-colour ]]; then > _arguments -s \ > "*:portage:_values 'eselect modules' \$modnames[@]" && return 0 > elif (( $modnames[(I)$words[2]] )); then > modopts=($(eselect $words[2] usage | ${=sedcmd})) > _arguments -s \ > "*:portage:_values 'eselect $words[2] options' \$modopts[@]" && return 0 > fi > elif ((CURRENT == 4)); then > if (( $modnames[(I)$words[3]] )); then > modopts=($(eselect $words[3] usage | ${=sedcmd})) > _arguments -s \ > "*:portage:_values 'eselect $words[3] options' \$modopts[@]" && return 0 > fi > fi >} > >_eselect "$@" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 171381
:
113708
| 113749 |
134650