Skip to content

Commit ba3b8eb

Browse files
committed
feat(gpg,gpg2): more key option argument completions
1 parent 6d78b4d commit ba3b8eb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

completions/gpg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ _gpg()
1010
_filedir
1111
return
1212
;;
13-
--export | --sign-key | --lsign-key | --nrsign-key | --nrlsign-key | --edit-key)
13+
--export | --sign-key | --lsign-key | --nrsign-key | --nrlsign-key | \
14+
--edit-key | --delete-keys | --delete-secret-and-public-keys | \
15+
--locate-keys | --refresh-keys)
1416
# return list of public keys
1517
COMPREPLY=($(compgen -W "$($1 --list-keys 2>/dev/null | command sed -ne \
1618
's@^pub.*/\([^ ]*\).*$@\1@p' -ne \

completions/gpg2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ _gpg2()
1414
_filedir
1515
return
1616
;;
17-
--export | --sign-key | --lsign-key | --nrsign-key | --nrlsign-key | --edit-key)
17+
--export | --sign-key | --lsign-key | --nrsign-key | --nrlsign-key | \
18+
--edit-key | --delete-keys | --delete-secret-and-public-keys | \
19+
--locate-keys | --refresh-keys)
1820
# return list of public keys
1921
COMPREPLY=($(compgen -W "$($1 --list-keys 2>/dev/null | command sed -ne \
2022
's@^pub.*/\([^ ]*\).*$@\1@p' -ne \

0 commit comments

Comments
 (0)