minikube.plugin.zsh 383 Bytes
Newer Older
1
2
# Autocompletion for Minikube.
#
3
if (( $+commands[minikube] )); then
4
    __MINIKUBE_COMPLETION_FILE="${ZSH_CACHE_DIR}/minikube_completion"
5

6
7
    if [[ ! -f $__MINIKUBE_COMPLETION_FILE ]]; then
        minikube completion zsh >! $__MINIKUBE_COMPLETION_FILE
8
9
    fi

10
    [[ -f $__MINIKUBE_COMPLETION_FILE ]] && source $__MINIKUBE_COMPLETION_FILE
11

12
    unset __MINIKUBE_COMPLETION_FILE
13
fi