From a79fe8f3d4a64879ef736869107224c90975e0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C3=96zg=C3=BCr?= <226712+halilim@users.noreply.github.com> Date: Fri, 26 Dec 2025 13:35:04 +0300 Subject: [PATCH] refactor(mise)!: Remove rtx support and hook-env BREAKING CHANGE: rtx support has been removed. Please visit https://mise.jdx.dev/rtx.html for migration instructions. `mise activate` already calls hook-env (unless --no-hook-env is passed). --- plugins/mise/mise.plugin.zsh | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/plugins/mise/mise.plugin.zsh b/plugins/mise/mise.plugin.zsh index 96686f6aa..96373f5d2 100644 --- a/plugins/mise/mise.plugin.zsh +++ b/plugins/mise/mise.plugin.zsh @@ -1,27 +1,17 @@ -# TODO: 2024-01-03 remove rtx support -local __mise=mise if (( ! $+commands[mise] )); then - if (( $+commands[rtx] )); then - __mise=rtx - else - return - fi + return fi # Load mise hooks -eval "$($__mise activate zsh)" - -# Hook mise into current environment -eval "$($__mise hook-env -s zsh)" +eval "$(mise activate 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 +if [[ ! -f "$ZSH_CACHE_DIR/completions/_mise" ]]; then typeset -g -A _comps - autoload -Uz _$__mise - _comps[$__mise]=_$__mise + autoload -Uz _mise + _comps[mise]=_mise fi # Generate and load mise completion -$__mise completion zsh >| "$ZSH_CACHE_DIR/completions/_$__mise" &| -unset __mise +mise completion zsh >| "$ZSH_CACHE_DIR/completions/_mise" &|