From 6a4ee1656eba28db17bafb7e998d86b1353db95d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 10 Apr 2014 20:07:42 +0100 Subject: zsh: Only run direnv when installed --- zsh/environment.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/environment.zsh b/zsh/environment.zsh index 0183f728..6279c1fd 100755 --- a/zsh/environment.zsh +++ b/zsh/environment.zsh @@ -47,4 +47,6 @@ esac export os -eval "$(direnv hook zsh)" +if [[ $commands[direnv] ]] + eval "$(direnv hook zsh)" +fi -- cgit 1.4.1