From 2919c8695b524c19ea081fcf9d99f8d78d33ab40 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 17 Jan 2026 00:00:14 +0100 Subject: [PATCH] shell/direnv: enable zsh --- shell/direnv.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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