summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2019-01-22 00:39:22 +0100
committerRobin Krahl <me@robin-krahl.de>2019-01-22 00:39:22 +0100
commit7df6416b780e237e7f13725d90ae3b59486e25ed (patch)
tree3a51b188f2e75d94509a8d0df016322ddf2c235f
parent67c47906ef9d60ac64b9e0571aa4bced55320006 (diff)
downloaddotfiles-7df6416b780e237e7f13725d90ae3b59486e25ed.tar.gz
dotfiles-7df6416b780e237e7f13725d90ae3b59486e25ed.tar.bz2
Add ssh-agent configuration for GnuPG
-rw-r--r--ssh/.config/env/00-ssh.sh5
1 files changed, 5 insertions, 0 deletions
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