File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,19 @@ if (( ! $+commands[procs] )); then
33fi
44
55# If the completion file doesn't exist yet, we need to autoload it and
6- # bind it to `minikube `. Otherwise, compinit will have already done that.
6+ # bind it to `procs `. Otherwise, compinit will have already done that.
77if [[ ! -f " $ZSH_CACHE_DIR /completions/_procs" ]]; then
88 typeset -g -A _comps
99 autoload -Uz _procs
1010 _comps[procs]=_procs
1111fi
1212
13- procs --gen-completion-out zsh > | " $ZSH_CACHE_DIR /completions/_procs" & |
13+ {
14+ autoload -Uz is-at-least
15+ local _version=$( procs --version)
16+ if is-at-least " 0.14" " ${_version# procs } " ; then
17+ procs --gen-completion-out zsh > | " $ZSH_CACHE_DIR /completions/_procs"
18+ else
19+ procs --completion-out zsh > | " $ZSH_CACHE_DIR /completions/_procs"
20+ fi
21+ } & |
You can’t perform that action at this time.
0 commit comments