diff options
author | 2014-11-26 23:21:26 -0800 | |
---|---|---|
committer | 2014-11-26 23:21:26 -0800 | |
commit | 9eee6ffef4e01324e975ced9e124634d0ce2c7e9 (patch) | |
tree | c58b45d725d88ec82eeed9f4540a9092349f1140 | |
parent | _gentoolkit: update various equery command completions (bug #518512) (diff) | |
download | zsh-completion-9eee6ffef4e01324e975ced9e124634d0ce2c7e9.tar.gz zsh-completion-9eee6ffef4e01324e975ced9e124634d0ce2c7e9.tar.bz2 zsh-completion-9eee6ffef4e01324e975ced9e124634d0ce2c7e9.zip |
_portage: allow --depclean to take installed pkg arguments
-rw-r--r-- | src/_portage | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_portage b/src/_portage index 784a8e8..98410d3 100644 --- a/src/_portage +++ b/src/_portage @@ -167,7 +167,7 @@ _emerge () { "($bopts)"{-k,--usepkg}"[Tells emerge to use binary packages if available]" "($bopts --changelog -l)"{-K,--usepkgonly}"[Tells emerge to use binary packages only]" "($all)--clean[Cleans the system by removing packages]" - "(: $all)"{-c,--depclean}"[Clean all packages that have no reason for being installed (see man!!!)]" + "($all)"{-c,--depclean}"[Clean selected packages/all packages that have no reason for being installed (see man!!!)]" "(: $all $noask_opts --nospinner --quiet -q)--info[This is a list of information to include in bug reports]" "(: -)--metadata[Generate metadata]" "($nopkg_opts --usepkgonly -K)--newuse[Include installed packages which have changed USE flags]" @@ -189,7 +189,7 @@ _emerge () { # Dispatch - if (( $words[(I)(--(unmerge|clean|prune|deselect)|-[[:alpha:]]#(C|c|P)[[:alpha:]]#)] )) ; then + if (( $words[(I)(--(unmerge|(dep|)clean|prune|deselect)|-[[:alpha:]]#(C|c|P)[[:alpha:]]#)] )) ; then if compset -P '(\\|)(>=|<=|<|>|=)'; then _arguments -s \ '*:installed package:_gentoo_packages installed_versions' && return 0 |