dotfiles/dot_oh-my-zsh/plugins/minikube/minikube.plugin.zsh

14 lines
383 B
Bash
Raw Normal View History

2020-06-15 10:31:33 +00:00
# Autocompletion for Minikube.
#
if (( $+commands[minikube] )); then
2020-11-19 01:19:31 +00:00
__MINIKUBE_COMPLETION_FILE="${ZSH_CACHE_DIR}/minikube_completion"
2020-06-15 10:31:33 +00:00
2020-11-19 01:19:31 +00:00
if [[ ! -f $__MINIKUBE_COMPLETION_FILE ]]; then
minikube completion zsh >! $__MINIKUBE_COMPLETION_FILE
2020-06-15 10:31:33 +00:00
fi
2020-11-19 01:19:31 +00:00
[[ -f $__MINIKUBE_COMPLETION_FILE ]] && source $__MINIKUBE_COMPLETION_FILE
2020-06-15 10:31:33 +00:00
2020-11-19 01:19:31 +00:00
unset __MINIKUBE_COMPLETION_FILE
2020-06-15 10:31:33 +00:00
fi