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
fi
() {
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
}
_add_identities
unset agent_forwarding ssh_env_cache
unfunction _start_agent _add_identities