mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-29 06:26:06 +02:00
fix(mise): activate using ~/.local/bin/mise (#13984)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
co-authored by
Carlo Sala
parent
a5ecff7560
commit
9112b53fa8
@@ -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
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load mise hooks
|
# 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
|
# 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.
|
# bind it to `mise`. Otherwise, compinit will have already done that.
|
||||||
|
|||||||
Reference in New Issue
Block a user