1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 23:30:08 +00:00

Merge pull request #1529 from aquaplanet/fix-sshagent-openbsd

Fix ssh-agent plugin for OpenBSD, making it more portable
This commit is contained in:
Robby Russell 2013-11-04 12:29:42 -08:00
commit b2376c3770

View file

@ -57,7 +57,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