diff options
Diffstat (limited to 'data/share/bash-completion/completions/pkgdev')
-rw-r--r-- | data/share/bash-completion/completions/pkgdev | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/data/share/bash-completion/completions/pkgdev b/data/share/bash-completion/completions/pkgdev index 4bc29e7..bbad831 100644 --- a/data/share/bash-completion/completions/pkgdev +++ b/data/share/bash-completion/completions/pkgdev @@ -214,6 +214,7 @@ _pkgdev() { --template-file --logs-dir --emerge-opts + --extra-env-file " case "${prev}" in @@ -226,6 +227,16 @@ _pkgdev() { --logs-dir) COMPREPLY=($(compgen -d -- "${cur}")) ;; + --extra-env-file) + if [[ -d /etc/portage/env/ ]]; then + pushd /etc/portage/env/ >& /dev/null + local SETS=( * ) + COMPREPLY=($(compgen -W "${SETS[*]}" -- "${cur}" )) + popd >& /dev/null + else + COMPREPLY=() + fi + ;; *) COMPREPLY+=($(compgen -W "${subcmd_options}" -- "${cur}")) ;; |