mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
minikube: cache command completions (#7446)
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user