Browse Source

Merge pull request #2220 from nishigori/fix-bad-ps-syntax

When using ssh-agent plugin, It output a warning message
Robby Russell 10 years ago
parent
commit
e30a1243dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/ssh-agent/ssh-agent.plugin.zsh

+ 1 - 1
plugins/ssh-agent/ssh-agent.plugin.zsh

@@ -57,7 +57,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 -x | grep ${SSH_AGENT_PID} | grep ssh-agent > /dev/null || {
+  ps x | grep ${SSH_AGENT_PID} | grep ssh-agent > /dev/null || {
     _plugin__start_agent;
   }
 else