This commit is contained in:
Jason 2020-05-28 08:24:04 +09:00 committed by Fabian Homborg
parent dc4ca005f8
commit bb7eb33b22

View file

@ -8,7 +8,7 @@ function __fish_complete_gpg_key_id -d 'Complete using gpg key ids' -a __fish_co
case "uid*"
# Extract user ids (note: gpg escapes colons as '\x3a')
set -l __uid (string split ":" -- $garbage)
set -l uid (string replace -a '\x3a' ':' -- $__uuid[10])
set -l uid (string replace -a '\x3a' ':' -- $__uid[10])
printf "%s\t%s\n" $keyid $uid
case "pub*"
# Extract key fingerprints (no subkeys)