Update SSH_AUTH_SOCK location

This commit is contained in:
Adam Goldsmith 2016-07-23 14:45:46 -04:00
parent 4200499836
commit 6c31a7c09e

View File

@ -30,7 +30,7 @@ fi
## Set SSH to use gpg-agent ## Set SSH to use gpg-agent
unset SSH_AGENT_PID unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh" export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
fi fi
## Set GPG TTY ## Set GPG TTY