diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-09-10 18:01:43 +0200 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-09-10 18:01:43 +0200 |
commit | 735808f48d54aabce540f6c90294e21118104cf4 (patch) | |
tree | e18323f5a169ef4c6a320150f16f0258753714cb /plugins/ssh-agent/ssh-agent.plugin.zsh | |
parent | 81edb03c5261658d40885abf4bcd54cf9dbbc6a5 (diff) | |
download | zsh-735808f48d54aabce540f6c90294e21118104cf4.tar.gz zsh-735808f48d54aabce540f6c90294e21118104cf4.tar.bz2 zsh-735808f48d54aabce540f6c90294e21118104cf4.zip |
Revert "feat(ssh-agent): only start ssh-agent once (#5359)"
This reverts commit 7692881d2a61a4ba47eeef5d7827c0d2cb896def.
Diffstat (limited to 'plugins/ssh-agent/ssh-agent.plugin.zsh')
-rw-r--r-- | plugins/ssh-agent/ssh-agent.plugin.zsh | 19 |
1 files changed, 1 insertions, 18 deletions
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 |