Commit 0622fe86 authored by Steven Knight's avatar Steven Knight

Ported function to zsh

parent 1df49b6f
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment