浏览代码

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

Ben Woodward 1 月之前
父节点
当前提交
d157fc60c9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      plugins/mise/mise.plugin.zsh

+ 3 - 0
plugins/mise/mise.plugin.zsh

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