1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 10:22:00 +00:00

Revert "feat(ssh-agent): only start ssh-agent once (#5359)"

This reverts commit 7692881d2a.
This commit is contained in:
Marc Cornellà 2021-09-10 18:01:43 +02:00
parent 81edb03c52
commit 735808f48d
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -96,24 +96,7 @@ else
_start_agent _start_agent
fi fi
() { _add_identities
emulate -L zsh
command mkdir "$ZSH_CACHE_DIR/ssh-agent.lock" 2>/dev/null || return
trap "
ret=\$?
command rm -rf '$ZSH_CACHE_DIR/ssh-agent.lock'
unset agent_forwarding ssh_env_cache
unfunction _start_agent _add_identities 2>/dev/null
return \$ret
" EXIT INT QUIT
_add_identities
}
unset agent_forwarding ssh_env_cache unset agent_forwarding ssh_env_cache
unfunction _start_agent _add_identities unfunction _start_agent _add_identities