From 7b1f519bb1d6644198c18dc19da160a3fa351799 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sat, 5 Aug 2023 10:33:46 +0300 Subject: bash-completion: --pkgset for pquery Signed-off-by: Arthur Zamarin --- data/share/bash-completion/completions/pquery | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/data/share/bash-completion/completions/pquery b/data/share/bash-completion/completions/pquery index 6bc0cbdf..eedb9a1b 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}")) -- cgit v1.2.3-65-gdbad