about summary refs log tree commit diff
path: root/users/riking/dotfiles/fish/functions/prodaccess.fish
diff options
context:
space:
mode:
Diffstat (limited to 'users/riking/dotfiles/fish/functions/prodaccess.fish')
-rw-r--r--users/riking/dotfiles/fish/functions/prodaccess.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/riking/dotfiles/fish/functions/prodaccess.fish b/users/riking/dotfiles/fish/functions/prodaccess.fish
new file mode 100644
index 000000000000..876c14c5e31e
--- /dev/null
+++ b/users/riking/dotfiles/fish/functions/prodaccess.fish
@@ -0,0 +1,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