minikube.plugin.zsh 383 B

1234567891011121314
  1. # Autocompletion for Minikube.
  2. #
  3. if (( $+commands[minikube] )); then
  4. __MINIKUBE_COMPLETION_FILE="${ZSH_CACHE_DIR}/minikube_completion"
  5. if [[ ! -f $__MINIKUBE_COMPLETION_FILE ]]; then
  6. minikube completion zsh >! $__MINIKUBE_COMPLETION_FILE
  7. fi
  8. [[ -f $__MINIKUBE_COMPLETION_FILE ]] && source $__MINIKUBE_COMPLETION_FILE
  9. unset __MINIKUBE_COMPLETION_FILE
  10. fi