diff options
Diffstat (limited to 'ssh/.config/profile.d')
-rw-r--r-- | ssh/.config/profile.d/10-ssh.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh/.config/profile.d/10-ssh.sh b/ssh/.config/profile.d/10-ssh.sh index 82e3b31..af52410 100644 --- a/ssh/.config/profile.d/10-ssh.sh +++ b/ssh/.config/profile.d/10-ssh.sh @@ -1,3 +1,5 @@ #!/bin/sh -export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" +if [ -z "$SSH_CONNECTION" ]; then + export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" +fi |