File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,15 @@ _gpg()
1414 --edit-key | --delete-keys | --delete-secret-and-public-keys | \
1515 --locate-keys | --refresh-keys)
1616 # return list of public keys
17- COMPREPLY=($( compgen -W " $( $1 --list-keys 2> /dev/null | command sed -ne \
18- ' s@^pub.*/\([^ ]*\).*$@\1@p' -ne \
19- ' s@^.*\(<\([^>]*\)>\).*$@\2@p' ) " -- " $cur " ) )
17+ COMPREPLY=($( compgen -W " $( $1 --list-keys 2> /dev/null |
18+ command sed -ne \
19+ ' s@^pub.*/\([^ ]*\).*$@\1@p' -ne \
20+ ' s@^.*\(<\([^>]*\)>\).*$@\2@p' ) " -- " $cur " ) )
2021 return
2122 ;;
2223 --recipient | -! (-* )r)
23- COMPREPLY=($( compgen -W " $( $1 --list-keys 2> /dev/null | command sed -ne \
24- ' s@^.*<\([^>]*\)>.*$@\1@p' ) " -- " $cur " ) )
24+ COMPREPLY=($( compgen -W " $( $1 --list-keys 2> /dev/null |
25+ command sed -ne ' s@^.*<\([^>]*\)>.*$@\1@p' ) " -- " $cur " ) )
2526 if [[ -e ~ /.gnupg/gpg.conf ]]; then
2627 COMPREPLY+=($( compgen -W " $( command sed -ne \
2728 ' s@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ _gpg2()
1818 --edit-key | --delete-keys | --delete-secret-and-public-keys | \
1919 --locate-keys | --refresh-keys)
2020 # return list of public keys
21- COMPREPLY=($( compgen -W " $( $1 --list-keys 2> /dev/null | command sed -ne \
22- ' s@^pub.*/\([^ ]*\).*$@\1@p' -ne \
23- ' s@^.*\(<\([^>]*\)>\).*$@\2@p' ) " -- " $cur " ) )
21+ COMPREPLY=($( compgen -W " $( $1 --list-keys 2> /dev/null |
22+ command sed -ne \
23+ ' s@^pub.*/\([^ ]*\).*$@\1@p' -ne \
24+ ' s@^.*\(<\([^>]*\)>\).*$@\2@p' ) " -- " $cur " ) )
2425 return
2526 ;;
2627 --recipient | -! (-* )r)
You can’t perform that action at this time.
0 commit comments