From 780545c9f59b56a59aba353193d9e63ac6f85109 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 21 Feb 2019 15:22:35 +0000 Subject: [PATCH] Correctly set SSH_AGENT_SOCKET --- bash/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.1