diff options
author | 2008-05-13 21:18:55 +0000 | |
---|---|---|
committer | 2008-05-13 21:18:55 +0000 | |
commit | 1a6a634cac6e6de1c401ed39daf8cacbc3168a63 (patch) | |
tree | 7db980dd13c9f58cf81bc02a56e8edc886eef972 | |
parent | include NEWS in dist, bug #203330 (diff) | |
download | gentoo-bashcomp-1a6a634cac6e6de1c401ed39daf8cacbc3168a63.tar.gz gentoo-bashcomp-1a6a634cac6e6de1c401ed39daf8cacbc3168a63.tar.bz2 gentoo-bashcomp-1a6a634cac6e6de1c401ed39daf8cacbc3168a63.zip |
Update completion for euse and glsa-check
svn path=/trunk/; revision=62
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | gentoo | 13 |
2 files changed, 8 insertions, 6 deletions
@@ -4,6 +4,7 @@ ChangeLog for gentoo-bashcomp * Removed herdstat functions as they're included with herdstat now. * Use source instead of sed to get PORTDIR/PORTDIR_OVERLAY #182809. + * Update completion for euse and glsa-check. 2005-06-14 Aaron Walker <ka0ttic@gentoo.org> @@ -2,7 +2,7 @@ # # $Id$ # -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later # also defined in bash_completion proper however, will produce command @@ -1742,8 +1742,8 @@ _euse() { COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - opts="-h --help -v --version -i --info -a --active -E --enable -D --disable - -P --prune" + opts="-h --help -v --version -i --info -I --info-installed -a --active + -E --enable -D --disable -P --prune" sopts="-g --global -l --local" if [[ ${cur} == -* ]] && [[ ${COMP_CWORD} -eq 1 ]] ; then @@ -1758,7 +1758,7 @@ _euse() { -a|--active) COMPREPLY=($(compgen -W "${sopts}" -- ${cur})) ;; - -i|--info|-E|--enable|-D|--disable|-P|--prune) + -i|--info|-I|--info-installed|-E|--enable|-D|--disable|-P|--prune) portdir=$(_portdir) use="$(sed -n -e 's/^\([^ ]\+\) - .*$/\1/p' ${portdir}/profiles/use.desc) \ $(sed -n -e 's/^[^ ]\+:\([^ ]*\) - .*$/\1/p' ${portdir}/profiles/use.local.desc)" @@ -1773,7 +1773,7 @@ _euse() { g=1 fi - if [[ ${COMP_LINE} == *" "@(-i|--info|-E|--enable|-D|--disable|-P|--prune)* ]] + if [[ ${COMP_LINE} == *" "@(-i|--info|-I|--info-installed|-E|--enable|-D|--disable|-P|--prune)* ]] then portdir=$(_portdir) @@ -1796,7 +1796,8 @@ _glsa_check() { COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" opts="-l --list -d --dump --print -t --test -p --pretend -f --fix -i - --inject -n --nocolor -h --help -V --version -v --verbose" + --inject -n --nocolor -e --emergelike -h --help -V --version -v --verbose + -c --cve -m --mail" if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=($(compgen -W "${opts}" -- ${cur})) |