summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zshrc7
1 files changed, 3 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index 8e91869..ca69823 100644
--- a/.zshrc
+++ b/.zshrc
@@ -45,10 +45,9 @@ bindkey "\e[3~" delete-char
export PATH=:$PATH:~/bin
-if [ -f "${HOME}/.gpg-agent-info" ]; then
- . "${HOME}/.gpg-agent-info"
- export GPG_AGENT_INFO
- export SSH_AUTH_SOCK
+unset SSH_AGENT_PID
+if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
+ export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
export GPG_TTY=$(tty)