diff --git a/bash/gnupg.sh b/bash/gnupg.sh index 715e3ab..3d259ef 100644 --- a/bash/gnupg.sh +++ b/bash/gnupg.sh @@ -1,3 +1,6 @@ +export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +gpg-connect-agent updatestartuptty /bye > /dev/null + alias gpgoff='gpgconf --kill gpg-agent' alias gpgtty='gpg-connect-agent updatestartuptty /bye'