mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-01 05:04:18 +08:00
9 lines
287 B
Fish
9 lines
287 B
Fish
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
|