|
|
|
@ -96,24 +96,7 @@ else |
|
|
|
_start_agent |
|
|
|
_start_agent |
|
|
|
fi |
|
|
|
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 |
|
|
|
unset agent_forwarding ssh_env_cache |
|
|
|
unfunction _start_agent _add_identities |
|
|
|
unfunction _start_agent _add_identities |
|
|
|
|