Don't run direnv if it does not exist at shell startup

This commit is contained in:
Ivan Malison 2021-07-11 22:55:19 +00:00
parent a58d6d4634
commit c8e3dcd973

View File

@ -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)"