mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
parent
f7dac82ed6
commit
c20a9ea477
@ -59,7 +59,15 @@ function __fish_print_gpg_algo -d "Complete using all algorithms of the type spe
|
|||||||
# remove all blanks
|
# remove all blanks
|
||||||
# transliterate ',' with '\n' (OSX apparently doesn't like '\n' on RHS of the s-command)
|
# transliterate ',' with '\n' (OSX apparently doesn't like '\n' on RHS of the s-command)
|
||||||
# print result
|
# 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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user