fix(mise): activate using ~/.local/bin/mise (#13984)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
Mohammad Al Zouabi
2026-09-01 09:21:54 +02:00
committed by GitHub
co-authored by Carlo Sala
parent a5ecff7560
commit 9112b53fa8
+7 -2
View File
@@ -1,9 +1,14 @@
if (( ! $+commands[mise] )); then
if (( $+commands[mise] )); then
_mise_bin=mise
elif [[ -x ~/.local/bin/mise ]]; then
_mise_bin=~/.local/bin/mise
else
return
fi
# Load mise hooks
eval "$(mise activate zsh)"
eval "$($_mise_bin activate zsh)"
unset _mise_bin
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `mise`. Otherwise, compinit will have already done that.