fix(zsh/direnv): correctly perform cache eval of setup

This commit is contained in:
2025-07-07 10:24:47 +01:00
parent 60cf0d1e33
commit b572a346fa

8
zshrc
View File

@@ -61,7 +61,13 @@ path_prepend "$MISE_HOME/shims"
# If available, make sure to load direnv shell hook before mise.
if command-exists direnv; then
cached-eval "$(command-path direnv)" direnv hook zsh
if command-exists mise; then
# If mise is available, use it to find the absolute path to direnv.
cached-eval "$(mise which direnv)" direnv hook zsh
else
# Otherwise, find it via PATH, which is likely to be mise's shim.
cached-eval "$(command-path direnv)" direnv hook zsh
fi
fi
# ==============================================================================