diff options
Diffstat (limited to 'gnupg/.config/profile.d')
-rw-r--r-- | gnupg/.config/profile.d/20-gnupg.sh | 6 | ||||
-rw-r--r-- | gnupg/.config/profile.d/20-ssh.sh | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gnupg/.config/profile.d/20-gnupg.sh b/gnupg/.config/profile.d/20-gnupg.sh index 1eb429a..1d2a50a 100644 --- a/gnupg/.config/profile.d/20-gnupg.sh +++ b/gnupg/.config/profile.d/20-gnupg.sh @@ -2,9 +2,3 @@ GPG_AGENT_SOCK="$(gpgconf --list-dirs agent-socket)" export GPG_AGENT_SOCK - -unset SSH_AGENT_PID -if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" - export SSH_AUTH_SOCK -fi diff --git a/gnupg/.config/profile.d/20-ssh.sh b/gnupg/.config/profile.d/20-ssh.sh new file mode 100644 index 0000000..6571e6d --- /dev/null +++ b/gnupg/.config/profile.d/20-ssh.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then + SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" + export SSH_AUTH_SOCK +fi |