mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge 01a2fd9613 into 0ebe35968c
This commit is contained in:
commit
8177c26579
1 changed files with 7 additions and 1 deletions
|
|
@ -65,7 +65,13 @@ 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 || {
|
||||
PLATFORM=`uname`
|
||||
if [[ ${PLATFORM} == "Darwin" ]]; then
|
||||
PS_FLAGS="-ef"
|
||||
else
|
||||
PS_FLAGS="x"
|
||||
fi
|
||||
ps ${PS_FLAGS} | grep ${SSH_AGENT_PID} | grep ssh-agent > /dev/null || {
|
||||
_plugin__start_agent;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue