diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-08-05 10:33:46 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-08-05 10:33:46 +0300 |
commit | 7b1f519bb1d6644198c18dc19da160a3fa351799 (patch) | |
tree | 53ed8cc137ed1fc9cbcb5c17e2376b7e98ae7198 /data | |
parent | ci: verify pkgcheck with pkgcore master (diff) | |
download | pkgcore-7b1f519bb1d6644198c18dc19da160a3fa351799.tar.gz pkgcore-7b1f519bb1d6644198c18dc19da160a3fa351799.tar.bz2 pkgcore-7b1f519bb1d6644198c18dc19da160a3fa351799.zip |
bash-completion: --pkgset for pquery
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
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}")) |