mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-19 01:54:25 +00:00
chore(snippets/gnupg): add export commands
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user