2018-05-10 04:34:41 +08:00
|
|
|
# Autocompletion for Minikube.
|
|
|
|
#
|
2020-03-02 20:20:28 +08:00
|
|
|
if (( $+commands[minikube] )); then
|
2020-09-30 05:35:29 +08:00
|
|
|
__MINIKUBE_COMPLETION_FILE="${ZSH_CACHE_DIR}/minikube_completion"
|
2018-05-10 04:34:41 +08:00
|
|
|
|
2020-09-30 05:35:29 +08:00
|
|
|
if [[ ! -f $__MINIKUBE_COMPLETION_FILE ]]; then
|
|
|
|
minikube completion zsh >! $__MINIKUBE_COMPLETION_FILE
|
2020-03-02 20:20:28 +08:00
|
|
|
fi
|
|
|
|
|
2020-09-30 05:35:29 +08:00
|
|
|
[[ -f $__MINIKUBE_COMPLETION_FILE ]] && source $__MINIKUBE_COMPLETION_FILE
|
2020-03-02 20:20:28 +08:00
|
|
|
|
2020-09-30 05:35:29 +08:00
|
|
|
unset __MINIKUBE_COMPLETION_FILE
|
2018-05-10 04:34:41 +08:00
|
|
|
fi
|