minikube.plugin.zsh
405 bytes
1if (( ! $+commands[minikube] )); then
2 return
3fi
4
5# 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.
7if [[ ! -f "$ZSH_CACHE_DIR/completions/_minikube" ]]; then
8 typeset -g -A _comps
9 autoload -Uz _minikube
10 _comps[minikube]=_minikube
11fi
12
13minikube completion zsh >| "$ZSH_CACHE_DIR/completions/_minikube" &|