Halil Özgür <226712+halilim@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date
Message
fix(mise)!: remove unneeded hook-env call (#13491)
BREAKING CHANGE: Backwards compatibility for `rtx` has been removed.
Please migrate to `mise` if you are affected by this change.
Diff
1diff --git a/plugins/mise/mise.plugin.zsh b/plugins/mise/mise.plugin.zsh
2index 96686f6aa911bd962c80088bec821e6e187fa746..96373f5d2f99aacfc7b475008f251b0ebbc50139 100644
3--- a/plugins/mise/mise.plugin.zsh
4+++ b/plugins/mise/mise.plugin.zsh
5@@ -1,27 +1,17 @@
6-# TODO: 2024-01-03 remove rtx support
7-local __mise=mise
8 if (( ! $+commands[mise] )); then
9- if (( $+commands[rtx] )); then
10- __mise=rtx
11- else
12- return
13- fi
14+ return
15 fi
1617 # Load mise hooks
18-eval "$($__mise activate zsh)"
19-
20-# Hook mise into current environment
21-eval "$($__mise hook-env -s zsh)"
22+eval "$(mise activate zsh)"
2324 # If the completion file doesn't exist yet, we need to autoload it and
25 # bind it to `mise`. Otherwise, compinit will have already done that.
26-if [[ ! -f "$ZSH_CACHE_DIR/completions/_$__mise" ]]; then
27+if [[ ! -f "$ZSH_CACHE_DIR/completions/_mise" ]]; then
28 typeset -g -A _comps
29- autoload -Uz _$__mise
30- _comps[$__mise]=_$__mise
31+ autoload -Uz _mise
32+ _comps[mise]=_mise
33 fi
3435 # Generate and load mise completion
36-$__mise completion zsh >| "$ZSH_CACHE_DIR/completions/_$__mise" &|
37-unset __mise
38+mise completion zsh >| "$ZSH_CACHE_DIR/completions/_mise" &|