From 2cd9d08904bb126e29edc60b8646ea1587649a27 Mon Sep 17 00:00:00 2001 From: Ian Johannesen Date: Mon, 19 Oct 2020 11:42:40 +0200 Subject: [PATCH] agent running if remote session and socket works --- functions/__ssh_agent_is_started.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/__ssh_agent_is_started.fish b/functions/__ssh_agent_is_started.fish index db14558..7d481ee 100644 --- a/functions/__ssh_agent_is_started.fish +++ b/functions/__ssh_agent_is_started.fish @@ -3,7 +3,7 @@ function __ssh_agent_is_started -d "check if ssh agent is already started" source $SSH_ENV > /dev/null end - if test -z "$SSH_AGENT_PID" + if begin; test -z "$SSH_AGENT_PID"; and test -z "$SSH_CONNECTION"; end return 1 end