diff options
| author | Ben Woodward <ben@benwoodward.me.uk> | 2024-03-21 19:46:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-21 20:46:40 +0100 |
| commit | d157fc60c93fa59e757921b503e9594bd23b422c (patch) | |
| tree | 47c1ceaeeac84c55a3217054c303b3c183b931da /plugins | |
| parent | 0fed36688f9a60d8b1f2182f27de7fdc8a1e6b72 (diff) | |
| download | zsh-d157fc60c93fa59e757921b503e9594bd23b422c.tar.gz zsh-d157fc60c93fa59e757921b503e9594bd23b422c.tar.bz2 zsh-d157fc60c93fa59e757921b503e9594bd23b422c.zip | |
fix(mise): update environment when loading the plugin (#12294)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/mise/mise.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mise/mise.plugin.zsh b/plugins/mise/mise.plugin.zsh index 1b4d3ae81..357174d91 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 |
