From 7df6416b780e237e7f13725d90ae3b59486e25ed Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 22 Jan 2019 00:39:22 +0100 Subject: Add ssh-agent configuration for GnuPG --- ssh/.config/env/00-ssh.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 ssh/.config/env/00-ssh.sh (limited to 'ssh/.config/env') diff --git a/ssh/.config/env/00-ssh.sh b/ssh/.config/env/00-ssh.sh new file mode 100644 index 0000000..718d7a0 --- /dev/null +++ b/ssh/.config/env/00-ssh.sh @@ -0,0 +1,5 @@ +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ] +then + export SSH_AUTH_SOCK=`gpgconf --list-dirs agent-ssh-socket` +fi -- cgit v1.2.3