depot/third_party/tvl/users/riking/dotfiles/fish/functions/prodaccess.fish
Default email c4fb0432ae Project import generated by Copybara.
GitOrigin-RevId: 3fc1143a04da49a92c3663813c6a0c1e8ccd477f
2020-09-29 23:42:59 -04:00

6 lines
297 B
Fish

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