about summary refs log tree commit diff
path: root/users/riking/dotfiles/fish/functions/prodaccess.fish
blob: 876c14c5e31ec458e3b7db1d4d2e4fc135b18e99 (plain) (blame)
1
2
3
4
5
6
function prodaccess
    ssh-add "$HOME/.ssh/id_ecdsa_sk"
    begin; ssh-add -L | grep -q 'ZgEu6S3SLatYN'; end || ssh-add "$HOME"/.ssh/id_ed25519
    begin; ssh-add -L | grep -q 'Gfh2S3kUwZ8A6'; end || ssh-add "$HOME"/.ssh/id_rsa.discourse
    echo "signing test" | gpg --clearsign > /dev/null
end