Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/bash_completion.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-01-26 20:43:39 +1000
committerAllan McRae <allan@archlinux.org>2016-01-29 09:50:09 +1000
commit43a09d1663433202e00bb1863bfe57bae3a39e84 (patch)
treedfb7cfd09924d75d0c2e99bf462525853573d40f /contrib/bash_completion.in
parentb65c7afc17a1b65195d9c3f198991a5de3c02956 (diff)
bash_completion: update pacman completion
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib/bash_completion.in')
-rw-r--r--contrib/bash_completion.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/contrib/bash_completion.in b/contrib/bash_completion.in
index c74106fc..6f99681d 100644
--- a/contrib/bash_completion.in
+++ b/contrib/bash_completion.in
@@ -101,6 +101,7 @@ _pacman() {
COMPREPLY=()
_get_comp_words_by_ref cur prev
database=('asdeps asexplicit')
+ files=('list machinereadable owns search refresh regex' 'l o s x y')
query=('changelog check deps explicit file foreign groups info list owns
search unrequired upgrades' 'c e g i k l m o p s t u')
remove=('cascade dbonly nodeps assume-installed nosave print recursive unneeded' 'c n p s u')
@@ -108,23 +109,26 @@ _pacman() {
info list needed nodeps assume-installed print refresh recursive search sysupgrade'
'c g i l p s u w y')
upgrade=('asdeps asexplicit force needed nodeps assume-installed print recursive' 'p')
- 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')
+ common=('arch cachedir color config confirm dbpath debug gpgdir help hookdir logfile
+ noconfirm noprogressbar noscriptlet quiet root verbose' 'b d h q r v')
+ core=('database files help query remove sync upgrade version' 'D F Q R S U V h')
- for o in 'D database' 'Q query' 'R remove' 'S sync' 'U upgrade'; do
+ for o in 'D database' 'F files' 'Q query' 'R remove' 'S sync' 'U upgrade'; do
_arch_incomp "$o" && break
done
if [[ $? != 0 ]]; then
_arch_ptr2comp core
elif [[ ! $prev =~ ^-\w*[Vbhr] &&
- ! $prev = --@(cachedir|color|config|dbpath|help|logfile|root|version) ]]
+ ! $prev = --@(cachedir|color|config|dbpath|help|hookdir|gpgdir|logfile|root|version) ]]
then
[[ $cur = -* ]] && _arch_ptr2comp ${o#* } common ||
case ${o% *} in
D|R)
_pacman_pkg Qq;;
+ F)
+ _arch_incomp 'l list' && _pacman_pkg Slq;
+ ;;
Q)
{ _arch_incomp 'g groups' && _pacman_pkg Qg sort; } ||
{ _arch_incomp 'p file' && _pacman_file; } ||