From 9876d9783979ec031d673e9a6df845e52fd2febb Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Fri, 8 Mar 2013 17:23:33 +1000 Subject: bash_completion: update for color Signed-off-by: Allan McRae --- contrib/bash_completion.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib') 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 -- cgit v1.2.3-24-g4f1b