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