diff options
author | Robin Krahl <me@robin-krahl.de> | 2019-01-22 00:39:22 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2019-01-22 00:39:22 +0100 |
commit | 7df6416b780e237e7f13725d90ae3b59486e25ed (patch) | |
tree | 3a51b188f2e75d94509a8d0df016322ddf2c235f | |
parent | 67c47906ef9d60ac64b9e0571aa4bced55320006 (diff) | |
download | dotfiles-7df6416b780e237e7f13725d90ae3b59486e25ed.tar.gz dotfiles-7df6416b780e237e7f13725d90ae3b59486e25ed.tar.bz2 |
Add ssh-agent configuration for GnuPG
-rw-r--r-- | ssh/.config/env/00-ssh.sh | 5 |
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 |