diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/share/bash-completion/completions/pquery | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/data/share/bash-completion/completions/pquery b/data/share/bash-completion/completions/pquery index 6bc0cbdf0..eedb9a1bb 100644 --- a/data/share/bash-completion/completions/pquery +++ b/data/share/bash-completion/completions/pquery @@ -111,13 +111,22 @@ _pquery() { COMPREPLY=() ;; --has-use | --license | --revdep | --revdep-pkgs | --restrict-revdep | --restrict-revdep-pkgs | \ - -S | --description | --eapi | --owns | --owns-re | --environment | --pkgset | \ + -S | --description | --eapi | --owns | --owns-re | --environment | \ --maintainer | --maintainer-name | --maintainer-email) COMPREPLY=() ;; --virtuals) COMPREPLY=($(compgen -W "only disable" -- "${cur}")) ;; + --pkgset) + COMPREPLY=($(compgen -W "world system installed versioned-installed vuln" -- "${cur}")) + if [[ -d /etc/portage/sets/ ]]; then + pushd /etc/portage/sets/ >& /dev/null + local SETS=( * ) + COMPREPLY+=($(compgen -W "${SETS[*]}" -- "${cur}" )) + popd >& /dev/null + fi + ;; -r | --repo) COMPREPLY=($(compgen -W "$(_parsereposconf -l)" -- "${cur}")) COMPREPLY+=($(compgen -d -- "${cur}")) |