735808f48d54aabce540f6c90294e21118104cf4

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

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

This reverts commit 7692881d2a61a4ba47eeef5d7827c0d2cb896def.

Diff

 1diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
 2index c2b9546a2ebba6df423595f451570145ee41d93c..2d7d8a2a00febe4f6743e57a19f0ae57708652d0 100644
 3--- a/plugins/ssh-agent/ssh-agent.plugin.zsh
 4+++ b/plugins/ssh-agent/ssh-agent.plugin.zsh
 5@@ -96,24 +96,7 @@ else
 6   _start_agent
 7 fi
 8 
 9-() {
10-  emulate -L zsh
11-
12-  command mkdir "$ZSH_CACHE_DIR/ssh-agent.lock" 2>/dev/null || return
13-
14-  trap "
15-    ret=\$?
16-
17-    command rm -rf '$ZSH_CACHE_DIR/ssh-agent.lock'
18-    unset agent_forwarding ssh_env_cache
19-    unfunction _start_agent _add_identities 2>/dev/null
20-
21-    return \$ret
22-  " EXIT INT QUIT
23-
24-  _add_identities
25-
26-}
27+_add_identities
28 
29 unset agent_forwarding ssh_env_cache
30 unfunction _start_agent _add_identities