d157fc60c93fa59e757921b503e9594bd23b422c

Author
Ben Woodward <ben@benwoodward.me.uk>
Committer
GitHub <noreply@github.com>
Date

Message

fix(mise): update environment when loading the plugin (#12294)

Diff

 1diff --git a/plugins/mise/mise.plugin.zsh b/plugins/mise/mise.plugin.zsh
 2index 1b4d3ae8134e32f12b409ebca0274fb5a2c77961..357174d91e3b7d6dacf93a2b0b841a73630c4bb2 100644
 3--- a/plugins/mise/mise.plugin.zsh
 4+++ b/plugins/mise/mise.plugin.zsh
 5@@ -11,6 +11,9 @@ fi
 6 # Load mise hooks
 7 eval "$($__mise activate zsh)"
 8 
 9+# Hook mise into current environment
10+eval "$($__mise hook-env -s zsh)"
11+
12 # If the completion file doesn't exist yet, we need to autoload it and
13 # bind it to `mise`. Otherwise, compinit will have already done that.
14 if [[ ! -f "$ZSH_CACHE_DIR/completions/_$__mise" ]]; then