1f4bb8deb7bf166a43ed690b0961ab5a0b84523d
- Author
- Anders Andersson <anders.per.andersson@gmail.com>
- Committer
- Anders Andersson <anders.per.andersson@gmail.com>
- Date
Message
OpenBSD doesn't have -ef flags for ps. Both linux and OpenBSD have -x flags which works just as greate here
Diff
1diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
2index c4e92a1fe00403782e7eacbb0fb5009b5f65629a..650eb3f3c19b5c62e42811620a8a3348239b97dc 100644
3--- a/plugins/ssh-agent/ssh-agent.plugin.zsh
4+++ b/plugins/ssh-agent/ssh-agent.plugin.zsh
5@@ -48,7 +48,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 -ef | 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