Add support for gpg-agent

Load gpg-agent and ensure compatibility for SSH and other services.
This is needed to use smartcard based GPG authentication
This commit is contained in:
Robert Morrison 2022-02-15 01:59:57 +00:00
parent b726613d94
commit c8d0a8c855
Signed by: robert
GPG Key ID: 73E012EB3F4EC696

7
zshrc
View File

@ -59,6 +59,13 @@ _comp_options+=(globdots)
zle -N edit-command-line zle -N edit-command-line
bindkey "" edit-command-line bindkey "" edit-command-line
## Enable gpg-agent support
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
gpg-gpg-connect-agent /bye
export GPG_TTY=$(tty)
## Load external stuff ## Load external stuff
## support for opam ## support for opam