|
|
|
@ -51,7 +51,7 @@ zstyle -b ':omz:module:ssh-agent' forwarding '_ssh_agent_forwarding'
|
|
|
|
|
if is-true "${_ssh_agent_forwarding}" && [[ -n "$SSH_AUTH_SOCK" ]]; then
|
|
|
|
|
# Add a nifty symlink for screen/tmux if agent forwarding.
|
|
|
|
|
[[ -L "$SSH_AUTH_SOCK" ]] || ln -sf "$SSH_AUTH_SOCK" /tmp/ssh-agent-$USER-screen
|
|
|
|
|
elif [ -f "${_ssh_agent_env}" ]; then
|
|
|
|
|
elif [[ -s "${_ssh_agent_env}" ]]; then
|
|
|
|
|
# Source SSH settings, if applicable.
|
|
|
|
|
source "${_ssh_agent_env}" > /dev/null
|
|
|
|
|
ps -ef | grep "${SSH_AGENT_PID}" | grep -q 'ssh-agent$' || {
|
|
|
|
|