diff options
author | 2016-02-15 01:15:46 +0100 | |
---|---|---|
committer | 2018-03-02 19:06:51 +0100 | |
commit | a5c0c7a1c5610f8040ea1fdb1d0a1f8c4d2f45b3 (patch) | |
tree | d5750ee6d60653fac67288153856f848928836db | |
parent | Add completion for emerge --autounmask-write (diff) | |
download | gentoo-bashcomp-a5c0c7a1c5610f8040ea1fdb1d0a1f8c4d2f45b3.tar.gz gentoo-bashcomp-a5c0c7a1c5610f8040ea1fdb1d0a1f8c4d2f45b3.tar.bz2 gentoo-bashcomp-a5c0c7a1c5610f8040ea1fdb1d0a1f8c4d2f45b3.zip |
add completion for emerge --rage-clean
This PR adds the --rage-clean option.
Closes: https://github.com/gentoo/gentoo-bashcomp/pull/2
-rw-r--r-- | completions/emerge | 6 |
1 files 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}*") |