all repos — nixfiles @ 6a4ee1656eba28db17bafb7e998d86b1353db95d

System and user configuration, managed by nix and home-manager

zsh: Only run direnv when installed
Alan Pearce alan@alanpearce.co.uk
Thu, 10 Apr 2014 20:07:42 +0100
commit

6a4ee1656eba28db17bafb7e998d86b1353db95d

parent

8c278ce7d7f22486fcbb3d9eed826c49b690b895

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M zsh/environment.zshzsh/environment.zsh
@@ -47,4 +47,6 @@ esac 
 export os
 
-eval "$(direnv hook zsh)"
+if [[ $commands[direnv] ]]
+	eval "$(direnv hook zsh)"
+fi