From dc21f8d63ee2a5ac3ddd7eea4cd99c9509f4a2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Lidstr=C3=B6m?= Date: Sun, 30 Dec 2012 13:29:30 +0100 Subject: [PATCH] Made the ssh-agent plugin compatible with bsd --- plugins/ssh-agent/ssh-agent.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh index c4e92a1fe..58a8aee31 100644 --- a/plugins/ssh-agent/ssh-agent.plugin.zsh +++ b/plugins/ssh-agent/ssh-agent.plugin.zsh @@ -48,7 +48,7 @@ if [[ ${_plugin__forwarding} == "yes" && -n "$SSH_AUTH_SOCK" ]]; then elif [ -f "${_plugin__ssh_env}" ]; then # Source SSH settings, if applicable . ${_plugin__ssh_env} > /dev/null - ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || { + ps ax | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || { _plugin__start_agent; } else