Unverified Commit 74420341 authored by Pavel Fokin's avatar Pavel Fokin Committed by GitHub
Browse files

minikube: cache command completions (#7446)

parent e42683b8
# Autocompletion for Minikube. # Autocompletion for Minikube.
# #
if (( $+commands[minikube] )); then
__MINICUBE_COMPLETION_FILE="${ZSH_CACHE_DIR}/minicube_completion"
if [ $commands[minikube] ]; then if [[ ! -f $__MINICUBE_COMPLETION_FILE ]]; then
source <(minikube completion zsh) minikube completion zsh >! $__MINICUBE_COMPLETION_FILE
fi
[[ -f $__MINICUBE_COMPLETION_FILE ]] && source $__MINICUBE_COMPLETION_FILE
unset __MINICUBE_COMPLETION_FILE
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment