From 3c4e656c69a8ed34bc2d6f6bd167727b92e47326 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Wed, 28 Feb 2024 19:45:38 -0600 Subject: fix(ssh): skip ssh agent setup on remotes --- ssh/.config/profile.d/10-ssh.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ssh/.config/profile.d/10-ssh.sh') 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 -- cgit v1.2.3-70-g09d2