commit: a5c0c7a1c5610f8040ea1fdb1d0a1f8c4d2f45b3 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> AuthorDate: Mon Feb 15 00:15:46 2016 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Mar 2 18:06:51 2018 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-bashcomp.git/commit/?id=a5c0c7a1
add completion for emerge --rage-clean This PR adds the --rage-clean option. Closes: https://github.com/gentoo/gentoo-bashcomp/pull/2 completions/emerge | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/completions/emerge b/completions/emerge index a7d1f52..d7da227 100644 --- a/completions/emerge +++ b/completions/emerge @@ -29,7 +29,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 @@ -101,7 +101,7 @@ _emerge() --newuse --noconfmem --nodeps --noreplace --nospinner \ --oneshot --onlydeps \ --pretend --prune \ - --quiet \ + --quiet --rage-clean \ --reinstall=changed-use --regen \ --search \ --sync \ @@ -153,7 +153,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}*")
