summaryrefslogtreecommitdiff
path: root/plugins/procs/procs.plugin.zsh
blob: 332985bf96ba8c6c64556d57da76284c5b944e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if (( ! $+commands[procs] )); then
  return
fi

# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `minikube`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_procs" ]]; then
  typeset -g -A _comps
  autoload -Uz _procs
  _comps[procs]=_procs
fi

procs --gen-completion-out zsh >| "$ZSH_CACHE_DIR/completions/_procs" &|