ohmyzsh/plugins/minikube/minikube.plugin.zsh

14 lines
383 B
Bash
Raw Normal View History

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