1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 00:40:07 +00:00

Fix bad ps syntax in ssh-agent plugin

This commit is contained in:
nishigori 2013-11-05 08:40:13 +09:00
parent b2376c3770
commit dd4f57010c

View file

@ -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