From c8e3dcd97341a8cd56ffcbb604055a6171b16ba8 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 11 Jul 2021 22:55:19 +0000 Subject: [PATCH] Don't run direnv if it does not exist at shell startup --- dotfiles/lib/zsh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/lib/zsh.sh b/dotfiles/lib/zsh.sh index 7921d578..6cacf439 100644 --- a/dotfiles/lib/zsh.sh +++ b/dotfiles/lib/zsh.sh @@ -15,4 +15,4 @@ function if_emacs_zsh { environment_variable_exists INSIDE_EMACS && export PROMPT='$ ' # Enable direnv -eval "$(direnv hook zsh)" +command_exists direnv && eval "$(direnv hook zsh)"