diff --git a/config/zsh/interactive/direnv b/config/zsh/interactive/direnv new file mode 100644 index 0000000..49e16f6 --- /dev/null +++ b/config/zsh/interactive/direnv @@ -0,0 +1,8 @@ +#! zsh +_direnv_hook() { + eval "$(direnv export zsh)" +} +typeset -ag precmd_functions +if (( $+commands[direnv] )) && [[ -z ${precmd_functions[(r)_direnv_hook]} ]]; then + precmd_functions+=(_direnv_hook) +fi