Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 113708 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 zsh completion function for eselect
_eselect (text/plain), 1.35 KB, created by
David Durrleman
on 2007-03-18 20:32:53 UTC
(
hide
)
Description:
a zsh completion function for eselect
Filename:
MIME Type:
Creator:
David Durrleman
Created:
2007-03-18 20:32:53 UTC
Size:
1.35 KB
patch
obsolete
>#compdef eselect > ># ZSH completion function for eselect ># Author: David Durrleman <user dualmoo, host gmail.com> > >_modactions () { > local modactions > > modactions=(help usage version) > # taken from /usr/share/bash-completion/eselect > sedcmd="sed -n -e s/^[[:space:]]\+.*1m\([^[:space:]][[:alnum:]-]\+\).*[[:space:]]\+.*$/\1/p" > modactions=($(eselect $1 usage | ${=sedcmd}) $modactions) > > echo $modactions >} > >_eselect () { > local modfiles mods globargs modactions > > modfiles=(/usr/share/eselect/modules/*(:t)) > mods=(help list-modules usage version ${modfiles%\.eselect}) > > globargs=("--no-colour[Disable coloured output]") > > if ((CURRENT == 2)); then > _arguments -s \ > "$globargs[@]" \ > "*:portage:_values 'eselect modules' \$mods[@]" && return 0 > elif ((CURRENT == 3)); then > if [[ $words[2] == --no-colour ]]; then > _arguments -s \ > "*:portage:_values 'eselect modules' \$mods[@]" && return 0 > elif (( $mods[(I)$words[2]] )); then > modactions=($(_modactions $words[2])) > _arguments -s \ > "*:portage:_values 'eselect $words[2] options' \$modactions[@]" && return 0 > fi > elif ((CURRENT == 4)); then > if (( $mods[(I)$words[3]] )); then > modactions=($(_modactions $words[3])) > _arguments -s \ > "*:portage:_values 'eselect $words[3] options' \$modactions[@]" && 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