From 1515ff4b25d07da671b311ebd4b95497dc28aff7 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 8 Mar 2012 21:57:00 -0500 Subject: [PATCH] Check for availability of SSH agent --- plugins/ssh-agent/init.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/ssh-agent/init.zsh b/plugins/ssh-agent/init.zsh index 0e05653..9d67ffa 100644 --- a/plugins/ssh-agent/init.zsh +++ b/plugins/ssh-agent/init.zsh @@ -20,6 +20,10 @@ # 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_forwarding=