2024-01-03 04:01:17 +08:00
|
|
|
if (( ! $+commands[minikube] )); then
|
|
|
|
return
|
|
|
|
fi
|
2020-03-02 20:20:28 +08:00
|
|
|
|
2024-01-03 04:01:17 +08:00
|
|
|
# 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/_minikube" ]]; then
|
|
|
|
typeset -g -A _comps
|
|
|
|
autoload -Uz _minikube
|
|
|
|
_comps[minikube]=_minikube
|
2018-05-10 04:34:41 +08:00
|
|
|
fi
|
2024-01-03 04:01:17 +08:00
|
|
|
|
|
|
|
minikube completion zsh >| "$ZSH_CACHE_DIR/completions/_minikube" &|
|