Parent directory

mise.plugin.zsh

456 bytes
 1if (( ! $+commands[mise] )); then
 2  return
 3fi
 4
 5# Load mise hooks
 6eval "$(mise activate zsh)"
 7
 8# If the completion file doesn't exist yet, we need to autoload it and
 9# bind it to `mise`. Otherwise, compinit will have already done that.
10if [[ ! -f "$ZSH_CACHE_DIR/completions/_mise" ]]; then
11  typeset -g -A _comps
12  autoload -Uz _mise
13  _comps[mise]=_mise
14fi
15
16# Generate and load mise completion
17mise completion zsh >| "$ZSH_CACHE_DIR/completions/_mise" &|