mirror of
https://github.com/fish-shell/fish-shell
synced 2024-09-21 15:01:53 +00:00
parent
01b0b04cbf
commit
ee3a1f24c3
1 changed files with 4 additions and 1 deletions
|
@ -4,5 +4,8 @@ function __fish_complete_gpg_user_id -d "Complete using gpg user ids" -a __fish_
|
|||
# gpg doesn't seem to like it when you use the whole key name as a
|
||||
# completion, so we skip the <EMAIL> part and use it as a description.
|
||||
# It also replaces \x3a from gpg's output with colons.
|
||||
$__fish_complete_gpg_command --list-keys --with-colon | string split -a -f 10 : | string replace '\x3a' : | string replace -rf '(.*) <(.*)>' '$1\t$2'
|
||||
#
|
||||
# TODO: I tried with <EMAIL> and it worked, this was possibly fixed in gpg.
|
||||
# Regardless, it's probably nicer as a description.
|
||||
$__fish_complete_gpg_command --list-keys --with-colon | string split -a -f 10 : | string replace '\x3a' : | string replace -r '(.*) <(.*)>' '$1\t$2'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue