diff --git a/plugins/mise/mise.plugin.zsh b/plugins/mise/mise.plugin.zsh index 2477d5c91..4a10ea445 100644 --- a/plugins/mise/mise.plugin.zsh +++ b/plugins/mise/mise.plugin.zsh @@ -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.