e30a1243dc89814e9f31e4b4cc284d948ecbfbd8
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #2220 from nishigori/fix-bad-ps-syntax
When using ssh-agent plugin, It output a warning message
Diff
1diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
2index 019322f7be8aeea7305457dad140f56903129982..a1e64ad0f119fdd627ae8f9a82d41d987d82bb34 100644
3--- a/plugins/ssh-agent/ssh-agent.plugin.zsh
4+++ b/plugins/ssh-agent/ssh-agent.plugin.zsh
5@@ -57,7 +57,7 @@ if [[ ${_plugin__forwarding} == "yes" && -n "$SSH_AUTH_SOCK" ]]; then
6 elif [ -f "${_plugin__ssh_env}" ]; then
7 # Source SSH settings, if applicable
8 . ${_plugin__ssh_env} > /dev/null
9- ps -x | grep ${SSH_AGENT_PID} | grep ssh-agent > /dev/null || {
10+ ps x | grep ${SSH_AGENT_PID} | grep ssh-agent > /dev/null || {
11 _plugin__start_agent;
12 }
13 else