mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-28 07:50:09 +08:00
OpenBSD doesn't have -ef flags for ps. Both linux and OpenBSD have -x flags which works just as greate here
This commit is contained in:
parent
397c085a19
commit
1f4bb8deb7
@ -48,7 +48,7 @@ if [[ ${_plugin__forwarding} == "yes" && -n "$SSH_AUTH_SOCK" ]]; then
|
|||||||
elif [ -f "${_plugin__ssh_env}" ]; then
|
elif [ -f "${_plugin__ssh_env}" ]; then
|
||||||
# Source SSH settings, if applicable
|
# Source SSH settings, if applicable
|
||||||
. ${_plugin__ssh_env} > /dev/null
|
. ${_plugin__ssh_env} > /dev/null
|
||||||
ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
|
ps -x | grep ${SSH_AGENT_PID} | grep ssh-agent > /dev/null || {
|
||||||
_plugin__start_agent;
|
_plugin__start_agent;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user