1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-26 18:30:45 +08:00
ohmyzsh/plugins/minikube/minikube.plugin.zsh

14 lines
383 B
Bash
Raw Normal View History

# Autocompletion for Minikube.
#
if (( $+commands[minikube] )); then
2020-09-30 05:35:29 +08:00
__MINIKUBE_COMPLETION_FILE="${ZSH_CACHE_DIR}/minikube_completion"
2020-09-30 05:35:29 +08:00
if [[ ! -f $__MINIKUBE_COMPLETION_FILE ]]; then
minikube completion zsh >! $__MINIKUBE_COMPLETION_FILE
fi
2020-09-30 05:35:29 +08:00
[[ -f $__MINIKUBE_COMPLETION_FILE ]] && source $__MINIKUBE_COMPLETION_FILE
2020-09-30 05:35:29 +08:00
unset __MINIKUBE_COMPLETION_FILE
fi