Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-09-25 14:32:15 -0400
committerDan McGee <dan@archlinux.org>2011-09-26 16:02:19 -0500
commitd1fc3aec4c7f7bab30f8ad7dabd7832c7c8570e6 (patch)
treef6a00b4124d08a5b53fcf984710f732ffeb6384f /contrib
parent507b01b912d77f0cc5422e689623f1b19c208525 (diff)
bash_completion: add completion for pacman-key
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bash_completion.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/bash_completion.in b/contrib/bash_completion.in
index ef04d5e1..78bde21d 100644
--- a/contrib/bash_completion.in
+++ b/contrib/bash_completion.in
@@ -27,6 +27,21 @@ _arch_incomp() {
local r="\s-(-${1#* }\s|\w*${1% *})"; [[ $COMP_LINE =~ $r ]]
}
+_pacman_key() {
+ local cur opts prev
+ COMPREPLY=()
+ _get_comp_words_by_ref cur prev
+ if [[ $cur = -* &&
+ $prev != -@(a|-add|c|-config|g|-gpgdir|h|-help|import?(-trustdb)) ]]; then
+ 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'
+ 'a d e f h l r u v V')
+ _arch_ptr2comp opts
+ fi
+ true
+}
+
_makepkg() {
local cur opts prev
COMPREPLY=()
@@ -109,5 +124,6 @@ else
fi
complete -F _makepkg -o default makepkg
+complete -F _pacman_key -o default pacman-key
# ex:et ts=2 sw=2 ft=sh