summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-03-08 17:23:33 +1000
committerAllan McRae <allan@archlinux.org>2013-03-10 09:01:56 +1000
commit9876d9783979ec031d673e9a6df845e52fd2febb (patch)
tree65f0b9dfe1125d6e53551d84a2555b00aaa385eb /contrib
parent51276f1ac5fd337a8bffbda3099c0bd86b6503cf (diff)
downloadpacman-9876d9783979ec031d673e9a6df845e52fd2febb.tar.xz
bash_completion: update for color
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bash_completion.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/bash_completion.in b/contrib/bash_completion.in
index b0901af2..6ab264d1 100644
--- a/contrib/bash_completion.in
+++ b/contrib/bash_completion.in
@@ -46,7 +46,7 @@ _pacman_key() {
_get_comp_words_by_ref cur prev
opts=('add delete export finger help list-keys recv-keys updatedb verify
version config edit-key gpgdir import import-trustdb init keyserver
- list-sigs lsign-key populate refresh-keys'
+ list-sigs lsign-key populate refresh-keys nocolor'
'a d e f h l r u v V')
# operations for which we want to complete keyids
@@ -105,7 +105,7 @@ _pacman() {
info list needed nodeps print refresh recursive search sysupgrade'
'c g i l p s u w y')
upgrade=('asdeps asexplicit force needed nodeps print recursive' 'p')
- common=('arch cachedir config dbpath debug help logfile noconfirm
+ common=('arch cachedir color config dbpath debug help logfile noconfirm
noprogressbar noscriptlet quiet root verbose' 'b d h q r v')
core=('database help query remove sync upgrade version' 'D Q R S U V h')
@@ -116,7 +116,7 @@ _pacman() {
if [[ $? != 0 ]]; then
_arch_ptr2comp core
elif [[ ! $prev =~ ^-\w*[Vbhr] &&
- ! $prev = --@(cachedir|config|dbpath|help|logfile|root|version) ]]
+ ! $prev = --@(cachedir|color|config|dbpath|help|logfile|root|version) ]]
then
[[ $cur = -* ]] && _arch_ptr2comp ${o#* } common ||
case ${o% *} in