summary refs log tree commit diff stats
path: root/zsh/environment.zsh
diff options
context:
space:
mode:
authorAlan Pearce2014-04-10 20:10:05 +0100
committerAlan Pearce2014-04-10 20:10:05 +0100
commit70dbdab03afdd27279c300bf3c3ff4b90e183bc6 (patch)
tree08d3aa2dbf09d762d9b651cea20518ff7aca087a /zsh/environment.zsh
parentdb9f688ce7596d8a25a85599a7eaa6911c60aff4 (diff)
downloadnixfiles-70dbdab03afdd27279c300bf3c3ff4b90e183bc6.tar.lz
nixfiles-70dbdab03afdd27279c300bf3c3ff4b90e183bc6.tar.zst
nixfiles-70dbdab03afdd27279c300bf3c3ff4b90e183bc6.zip
Use correct switch for testing commands
Diffstat (limited to 'zsh/environment.zsh')
-rwxr-xr-xzsh/environment.zsh2
1 files changed, 1 insertions, 1 deletions
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