mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-16 19:32:47 +08:00
Ported function to zsh
This commit is contained in:
parent
1df49b6fcd
commit
0622fe860f
|
@ -1,9 +1,8 @@
|
|||
# TODO: Need to convert to fish
|
||||
function pacmansignkeys
|
||||
# for key in $*; do
|
||||
# sudo pacman-key --recv-keys $key
|
||||
# sudo pacman-key --lsign-key $key
|
||||
# printf 'trust\n3\n' | sudo gpg --homedir /etc/pacman.d/gnupg \
|
||||
# --no-permission-warning --command-fd 0 --edit-key $key
|
||||
# done
|
||||
function pacmansignkeys -d "Allow user to sign keys"
|
||||
for key in $argv;
|
||||
sudo pacman-key --recv-keys $key
|
||||
sudo pacman-key --lsign-key $key
|
||||
printf 'trust\n3\n' | sudo gpg --homedir /etc/pacman.d/gnupg \
|
||||
--no-permission-warning --command-fd 0 --edit-key $key
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user