commit: c35f6a954e9bc6098edbfc4be686867272862f6c Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> AuthorDate: Mon Feb 15 00:15:46 2016 +0000 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> CommitDate: Wed Mar 16 11:41:55 2016 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-bashcomp.git/commit/?id=c35f6a95
add completion for emerge --rage-clean This PR adds the --rage-clean option. Closes: https://github.com/gentoo/gentoo-bashcomp/pull/2 gentoo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gentoo b/gentoo index 8935a40..deee23f 100644 --- a/gentoo +++ b/gentoo @@ -399,7 +399,7 @@ _emerge() # find action for x in ${COMP_LINE} ; do if [[ ${x} =~ ^(system|world)$ ]] || [[ ${x} =~ -[CPcs] ]] || \ - [[ ${x} =~ --(clean|config|depclean|info|metadata|prune|regen|resume|search|sync|unmerge) ]] + [[ ${x} =~ --(clean|config|depclean|info|metadata|prune|rage-clean|regen|resume|search|sync|unmerge) ]] then action=${x} break @@ -471,7 +471,7 @@ _emerge() --newuse --noconfmem --nodeps --noreplace --nospinner \ --oneshot --onlydeps \ --pretend --prune \ - --quiet \ + --quiet --rage-clean \ --reinstall=changed-use --regen \ --search \ --sync \ @@ -523,7 +523,7 @@ _emerge() fi # Complete on installed packages when unmerging. - if [[ "${action}" == '--unmerge' ]]; then + if [[ "${action}" =~ --(rage-clean|unmerge) ]]; then if [[ -n "${cur}" ]] ; then if [[ "${cur}" == */* ]]; then words=$(builtin cd @GENTOO_PORTAGE_EPREFIX@/var/db/pkg; compgen -G "${cur}*")
