Ported function to zsh

This commit is contained in:
Steven Knight 2014-02-26 17:39:28 -05:00
parent 1df49b6fcd
commit 0622fe860f

View File

@ -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