fix(zsh/mise): switch back to normal interactive init

Previously the interactive init would not update PATH immediately,
causing the rest of the zshrc file to fail to find any tools installed
with mise. This longer seems to be an issue.
This commit is contained in:
2025-01-13 19:56:30 +00:00
parent 6eee7b019a
commit 10144dfa16

13
zshrc
View File

@@ -238,8 +238,12 @@ if ! command-exists mise; then
fi
if command-exists mise; then
alias mi="mise"
# Activate mise. We cannot use cached-eval here as the activation script
# dynamically adjusts how it modifies PATH on each invocation.
eval "$("$MISE_INSTALL_PATH" activate zsh)"
setup-completions mise "$MISE_INSTALL_PATH" mise completions zsh
alias mi="mise"
fi
# ==============================================================================
@@ -316,13 +320,6 @@ unsetopt share_history
# Disable attempted correction of commands (is wrong 98% of the time).
unsetopt correctall
# ==============================================================================
# Prepare interactive environment
# ==============================================================================
# Activate mise properly for interactive use not using shims.
eval "$("$MISE_INSTALL_PATH" activate zsh)"
# ==============================================================================
# Local Overrides
# ==============================================================================