minikube.plugin.zsh 383 B

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