mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
Revert "feat(ssh-agent): only start ssh-agent once (#5359)"
This reverts commit 7692881d2a
.
This commit is contained in:
parent
81edb03c52
commit
735808f48d
1 changed files with 1 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue