]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Correctly set SSH_AGENT_SOCKET
authorMaximilian Friedersdorff <max@friedersdorff.com>
Thu, 21 Feb 2019 15:22:35 +0000 (15:22 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Thu, 21 Feb 2019 15:22:35 +0000 (15:22 +0000)
bash/.bashrc

index 02d34c9c08cdd7b818b2a5422f46c3f5e6821eb9..d9e59b2c92964b995e9d22e2d1b041d7b41a2d9f 100644 (file)
@@ -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)