From 52f0b2a375ccb0ace96101c277f9d70ef4693b6f Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Fri, 10 May 2024 17:08:05 +0200 Subject: [PATCH] chore(snippets/gnupg): add export commands --- snippets/{gpg.fish => gnupg.fish} | 7 +++++++ 1 file changed, 7 insertions(+) rename snippets/{gpg.fish => gnupg.fish} (56%) diff --git a/snippets/gpg.fish b/snippets/gnupg.fish similarity index 56% rename from snippets/gpg.fish rename to snippets/gnupg.fish index 735e17a..1272edf 100644 --- a/snippets/gpg.fish +++ b/snippets/gnupg.fish @@ -6,3 +6,10 @@ gpgconf --launch gpg-agent \ && gpg-connect-agent updatestartuptty '/bye' \ && set -x 'SSH_AUTH_SOCK' (gpgconf --list-dirs 'agent-ssh-socket') \ && set -x 'GPG_TTY' (tty) + +# Export public keys. +gpg --armor --export 'E455…50AB' | pbcopy +gpg --export-ssh-key 'E455…50AB' | pbcopy + +# Load identities in SSH. +gpgconf --launch gpg-agent