2
0

procs.plugin.zsh 394 B

12345678910111213
  1. if (( ! $+commands[procs] )); then
  2. return
  3. fi
  4. # If the completion file doesn't exist yet, we need to autoload it and
  5. # bind it to `minikube`. Otherwise, compinit will have already done that.
  6. if [[ ! -f "$ZSH_CACHE_DIR/completions/_procs" ]]; then
  7. typeset -g -A _comps
  8. autoload -Uz _procs
  9. _comps[procs]=_procs
  10. fi
  11. procs --gen-completion-out zsh >| "$ZSH_CACHE_DIR/completions/_procs" &|