diff --git a/zsh/zprofile b/zsh/zprofile index 1021280..a9af91c 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -42,7 +42,7 @@ fi # Set SSH to use gpg-agent unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh" + export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi # Set GPG TTY