Remove rtx backwards compatibility in mise.plugin.zsh

This is not necessary given that the rtx plugin is still around
This commit is contained in:
Pablo Martí Gamboa 2024-02-20 10:13:43 +01:00 committed by GitHub
parent 15ffbdd346
commit cdad29c355
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,23 +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)"
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" &|
mise completion zsh >| "$ZSH_CACHE_DIR/completions/_mise" &|