diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh index c2b9546a2..2d7d8a2a0 100644 --- a/plugins/ssh-agent/ssh-agent.plugin.zsh +++ b/plugins/ssh-agent/ssh-agent.plugin.zsh @@ -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