From 1ac20bc64ac1aa01ff512387c1b82ecb92b10391 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 8 Mar 2012 21:51:42 -0500 Subject: [PATCH] Move GPG agent availability check to the top --- plugins/gpg-agent/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/gpg-agent/init.zsh b/plugins/gpg-agent/init.zsh index 619f5b2..df98b19 100644 --- a/plugins/gpg-agent/init.zsh +++ b/plugins/gpg-agent/init.zsh @@ -6,12 +6,12 @@ # Sorin Ionescu # -_gpg_env="$HOME/.gnupg/gpg-agent.env" - if (( ! $+commands[gpg-agent] )); then return fi +_gpg_env="$HOME/.gnupg/gpg-agent.env" + function _gpg-agent-start() { gpg-agent --daemon --enable-ssh-support --write-env-file "${_gpg_env}" > /dev/null chmod 600 "${_gpg_env}"