minidotfiles/shellrcsnippets/gpg-agent-for-ssh

4 lines
144 B
Plaintext

export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1