From 70dbdab03afdd27279c300bf3c3ff4b90e183bc6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 10 Apr 2014 20:10:05 +0100 Subject: Use correct switch for testing commands --- zsh/environment.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/environment.zsh b/zsh/environment.zsh index 1519419a..49e9b213 100755 --- a/zsh/environment.zsh +++ b/zsh/environment.zsh @@ -47,6 +47,6 @@ esac export os -if [[ -z $commands[direnv] ]] +if [[ -s $commands[direnv] ]] eval "$(direnv hook zsh)" fi -- cgit 1.4.1