Check for availability of SSH agent

This commit is contained in:
Sorin Ionescu 2012-03-08 21:57:00 -05:00
parent e250df829e
commit 1515ff4b25

View File

@ -20,6 +20,10 @@
# zstyle ':omz:plugin:ssh-agent' identities 'id_rsa' 'id_rsa2' 'id_github' # zstyle ':omz:plugin:ssh-agent' identities 'id_rsa' 'id_rsa2' 'id_github'
# #
if (( ! $+commands[ssh-agent] )); then
return
fi
_ssh_agent_env="${HOME}/.ssh/environment-${HOST}" _ssh_agent_env="${HOME}/.ssh/environment-${HOST}"
_ssh_agent_forwarding= _ssh_agent_forwarding=