summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-03-20 17:27:50 +1000
committerAllan McRae <allan@archlinux.org>2013-03-26 15:55:51 +1000
commitbf3618a7c1d363378575987af6f552475ac6b392 (patch)
treee48609bf52fd400a6e479cae9d97adf3015d8ab3 /contrib
parent6e2c15099a8708e5f1bd5ccacd8d1a6ee3b39774 (diff)
contrib: Update bash_completion
Check all options are included in bash-completion. Alphabetize the pacman_key options for easier maintenance. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bash_completion.in14
1 files changed, 8 insertions, 6 deletions
diff --git a/contrib/bash_completion.in b/contrib/bash_completion.in
index 6ab264d1..28981ae4 100644
--- a/contrib/bash_completion.in
+++ b/contrib/bash_completion.in
@@ -44,14 +44,15 @@ _pacman_key() {
local o cur opts prev wantfiles
COMPREPLY=()
_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 nocolor'
+ opts=('add config delete edit-key export finger gpgdir
+ help import import-trustdb init keyserver list-keys list-sigs
+ lsign-key nocolor populate recv-keys refresh-keys updatedb
+ verify version'
'a d e f h l r u v V')
# operations for which we want to complete keyids
for o in 'd delete' 'e export' 'f finger' 'l list-keys' 'r recv-keys' \
- 'edit-key' 'list-sigs' 'refresh-keys'; do
+ 'edit-key' 'list-sigs' 'lsign-key' 'refresh-keys'; do
_arch_incomp "$o" && break
unset o
done
@@ -75,8 +76,9 @@ _makepkg() {
_get_comp_words_by_ref cur prev
if [[ $cur = -* && ! $prev =~ ^-(-(config|help)$|\w*[Chp]) ]]; then
opts=('allsource asdeps asroot check clean config force geninteg help holdver ignorearch
- install log nobuild nocheck nocolor noconfirm nodeps noextract
- noprogressbar nosign pkg repackage rmdeps sign skipinteg source syncdeps'
+ install key log needed nobuild nocheck nocolor noconfirm nodeps noextract
+ noprogressbar nosign pkg repackage rmdeps sign skipchecksums skipinteg
+ skippgpcheck source syncdeps verifysource version'
'A L R S c d e f g h i m o p r s')
_arch_ptr2comp opts
fi