feat(mise): hook into current environment

Now mise installs can be found by any following
plugins.
This commit is contained in:
Ben Woodward 2024-03-21 11:06:29 +00:00
commit 50fa601008

View file

@ -11,6 +11,9 @@ fi
# Load mise hooks
eval "$($__mise activate zsh)"
# Hook mise into current environment
eval "$($__mise hook-env -s zsh)"
# 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.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_$__mise" ]]; then