diff options
author | 2024-07-04 22:32:44 +0300 | |
---|---|---|
committer | 2024-07-04 22:32:44 +0300 | |
commit | aa9418b5e9ffefd14d3abc483c99db586c599ce4 (patch) | |
tree | c6957702fd30278a133353a1dae9b7dccda9dd1b | |
parent | ebuild.profiles: Fix case where a parent path omits the repo identifier (diff) | |
download | pkgcore-aa9418b5e9ffefd14d3abc483c99db586c599ce4.tar.gz pkgcore-aa9418b5e9ffefd14d3abc483c99db586c599ce4.tar.bz2 pkgcore-aa9418b5e9ffefd14d3abc483c99db586c599ce4.zip |
This handles spaces and such much much better
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | data/share/bash-completion/completions/pquery | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data/share/bash-completion/completions/pquery b/data/share/bash-completion/completions/pquery index eedb9a1b..7711f6b4 100644 --- a/data/share/bash-completion/completions/pquery +++ b/data/share/bash-completion/completions/pquery @@ -105,7 +105,7 @@ _pquery() { COMPREPLY=($(compgen -W "${boolean_options[*]}" -- "${cur}")) ;; --config) - COMPREPLY=($(compgen -f -- "${cur}")) + _filedir ;; --domain) COMPREPLY=() @@ -128,8 +128,9 @@ _pquery() { fi ;; -r | --repo) - COMPREPLY=($(compgen -W "$(_parsereposconf -l)" -- "${cur}")) - COMPREPLY+=($(compgen -d -- "${cur}")) + _filedir -d + COMPREPLY+=($(compgen -W "$(_parsereposconf -l)" -- "${cur}")) + # COMPREPLY+=($(compgen -d -- "${cur}")) ;; --highlight-dep | --print-revdep) COMPREPLY=() |