1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[bash] Improve gpg-agent support as ssh-agent

This commit is contained in:
Hyacinthe Cartiaux 2016-08-23 17:06:29 +02:00
parent 1fdc8065bb
commit a468c978ca

View file

@ -116,9 +116,9 @@ export GNUPGHOME=~/.gnupg
# SSH config
unset SSH_ASKPASS
if [[ -e "${GNUPGHOME}/S.gpg-agent.ssh" ]] ; then
export SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="/run/user/${UID}/gnupg/S.gpg-agent.ssh"
fi
# Easybuild BUILD PATH