aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-07-04 22:32:44 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-07-04 22:32:44 +0300
commitaa9418b5e9ffefd14d3abc483c99db586c599ce4 (patch)
treec6957702fd30278a133353a1dae9b7dccda9dd1b
parentebuild.profiles: Fix case where a parent path omits the repo identifier (diff)
downloadpkgcore-master.tar.gz
pkgcore-master.tar.bz2
pkgcore-master.zip
bash-completion: use _filedirHEADmaster
This handles spaces and such much much better Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--data/share/bash-completion/completions/pquery7
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=()