From 67407039190de74c4f256c1eb438370bd66df632 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Mon, 21 May 2018 20:20:25 -0700 Subject: [PATCH] Safer direnv hook in zsh --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index e5ce250..8409082 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -85,4 +85,4 @@ eval $(dircolors $HOME/.config/zsh/dircolors.256dark) autoload -U select-word-style select-word-style bash -eval "$(direnv hook zsh)" +which direnv > /dev/null && eval "$(direnv hook zsh)"