chore(snippets/gnupg): add export commands

This commit is contained in:
Michele Cereda
2024-05-10 17:08:05 +02:00
parent a14e729f72
commit 52f0b2a375

View File

@@ -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