aboutsummaryrefslogtreecommitdiffhomepage
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index ff82737..95980bb 100644
--- a/.zshrc
+++ b/.zshrc
@@ -441,4 +441,6 @@ export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.deno/bin:$PATH"
export PATH=/usr/local/go/bin:$PATH
-eval "$(direnv hook zsh)"
+if type direnv >/dev/null 2>&1; then
+ eval "$(direnv hook zsh)"
+fi