diff --git a/functions/__ssh_agent_is_started.fish b/functions/__ssh_agent_is_started.fish index 0a35b76..882c8f0 100644 --- a/functions/__ssh_agent_is_started.fish +++ b/functions/__ssh_agent_is_started.fish @@ -7,6 +7,6 @@ function __ssh_agent_is_started -d "check if ssh agent is already started" return 1 end - ps -ef | grep $SSH_AGENT_PID | grep -v grep | grep ssh-agent > /dev/null + ps -ef | grep $SSH_AGENT_PID | grep -v grep | grep -q ssh-agent return $status end