From d157fc60c93fa59e757921b503e9594bd23b422c Mon Sep 17 00:00:00 2001
From: Ben Woodward <ben@benwoodward.me.uk>
Date: Thu, 21 Mar 2024 19:46:40 +0000
Subject: [PATCH] fix(mise): update environment when loading the plugin
 (#12294)

---
 plugins/mise/mise.plugin.zsh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/mise/mise.plugin.zsh b/plugins/mise/mise.plugin.zsh
index 1b4d3ae8..357174d9 100644
--- a/plugins/mise/mise.plugin.zsh
+++ b/plugins/mise/mise.plugin.zsh
@@ -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