summaryrefslogtreecommitdiff
path: root/completions/gpg
diff options
context:
space:
mode:
Diffstat (limited to 'completions/gpg')
-rw-r--r--completions/gpg6
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/gpg b/completions/gpg
index f7efad3a..91436f7a 100644
--- a/completions/gpg
+++ b/completions/gpg
@@ -10,7 +10,7 @@ _gpg()
_filedir
return 0
;;
- --export|--sign-key|--lsignkey|--nrsignkey|--nrlsignkey|--editkey)
+ --export|--sign-key|--lsign-key|--nrsign-key|--nrlsign-key|--edit-key)
# return list of public keys
COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | \
sed -ne 's@^pub.*/\([^ ]*\).*$@\1@p' \
@@ -19,11 +19,11 @@ _gpg()
;;
-r|--recipient)
COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | \
- sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" ))
+ sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" ) )
if [[ -e ~/.gnupg/gpg.conf ]]; then
COMPREPLY+=( $( compgen -W "$( sed -ne \
's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
- ~/.gnupg/gpg.conf )" -- "$cur") )
+ ~/.gnupg/gpg.conf )" -- "$cur" ) )
fi
return 0
;;