From: Maximilian Friedersdorff Date: Thu, 21 Feb 2019 15:22:35 +0000 (+0000) Subject: Correctly set SSH_AGENT_SOCKET X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=780545c9f59b56a59aba353193d9e63ac6f85109;p=max%2Fdotfiles.git Correctly set SSH_AGENT_SOCKET --- diff --git a/bash/.bashrc b/bash/.bashrc index 02d34c9..d9e59b2 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -131,7 +131,7 @@ fi unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh + export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) fi export GPG_TTY=($tty)