mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
parent
f7dac82ed6
commit
c20a9ea477
1 changed files with 9 additions and 1 deletions
|
@ -59,7 +59,15 @@ function __fish_print_gpg_algo -d "Complete using all algorithms of the type spe
|
|||
# remove all blanks
|
||||
# transliterate ',' with '\n' (OSX apparently doesn't like '\n' on RHS of the s-command)
|
||||
# print result
|
||||
gpg --version | sed -ne "/$argv:/"'{:loop; /,$/{N; y!\n! !; b loop}; s!^[^:]*:!!; s![ ]*!!g; y!,!\n!; p}'
|
||||
gpg --version | sed -ne "/$argv:/"'{:loop
|
||||
/,$/{N; y!\n! !
|
||||
b loop
|
||||
}
|
||||
s!^[^:]*:!!
|
||||
s![ ]*!!g
|
||||
y!,!\n!
|
||||
p
|
||||
}'
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue