mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 12:46:39 +00:00
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:
13
zshrc
13
zshrc
@@ -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
|
||||
# ==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user