diff --git a/shell/direnv.sh b/shell/direnv.sh index a9a7499..e393572 100755 --- a/shell/direnv.sh +++ b/shell/direnv.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash if command -v direnv >/dev/null; then - eval "$(direnv hook bash)" + if [ -n "$BASH_VERSION" ]; then + eval "$(direnv hook bash)" + elif [ -n "$ZSH_VERSION" ]; then + eval "$(direnv hook zsh)" + fi fi