aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2006-11-30 01:45:15 +0000
committerAvatar Mike Kelly <pioto@pioto.org> 2006-11-30 01:45:15 +0000
commitf7e94c65f90b4409682fe35b047685b3cbe51ede (patch)
tree4e68452ac49939ae02fc35feaf022e98a0d4a60c
parent56f292b828af94cde0401e96dd906b709ded357e (diff)
downloadpaludis-f7e94c65f90b4409682fe35b047685b3cbe51ede.tar.gz
paludis-f7e94c65f90b4409682fe35b047685b3cbe51ede.tar.xz
Add --write-cache-dir support to qualudis and adjutrix bashcomp.
-rw-r--r--bash-completion/adjutrix5
-rw-r--r--bash-completion/qualudis5
2 files changed, 6 insertions, 4 deletions
diff --git a/bash-completion/adjutrix b/bash-completion/adjutrix
index 8f3ffeb..8723a58 100644
--- a/bash-completion/adjutrix
+++ b/bash-completion/adjutrix
@@ -46,7 +46,8 @@ _adjutrix() {
--category -C \
--package -P \
--profile -p \
- --unstable -U"
+ --unstable -U \
+ --write-cache-dir"
case "${cur}" in
-*)
@@ -85,7 +86,7 @@ _adjutrix() {
return 0
;;
- --repository-dir|-D)
+ --repository-dir|-D|--write-cache-dir)
COMPREPLY=($(compgen -d -- "${cur}"))
return 0
;;
diff --git a/bash-completion/qualudis b/bash-completion/qualudis
index c8f6831..04e7859 100644
--- a/bash-completion/qualudis
+++ b/bash-completion/qualudis
@@ -18,7 +18,8 @@ _qualudis() {
--verbose -v \
--quiet -q \
--log-level -L \
- --message-level -M"
+ --message-level -M \
+ --write-cache-dir"
case "${cur}" in
-*)
@@ -38,7 +39,7 @@ _qualudis() {
;;
--qa-check|-c)
- COMPREPLY=($(compgen -W "$(qualudis --log-level silent --describe |sed -n 's/ \(.*\):/\1/p')" -- "${cur}"))
+ COMPREPLY=($(compgen -W "$(qualudis --log-level silent --describe |sed -n 's/^ \(.*\):$/\1/p')" -- "${cur}"))
return 0
;;