Allow zsh completion to be autoloaded by compinit

pull/2996/head
Dusty Rip 2018-07-15 17:29:06 +02:00 committed by dlorenc
parent 7a7bd457f2
commit 2dea4e1051
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,8 @@ func GenerateBashCompletion(w io.Writer, cmd *cobra.Command) error {
func GenerateZshCompletion(out io.Writer, cmd *cobra.Command) error {
zsh_initialization := `
#compdef minikube
__minikube_bash_source() {
alias shopt=':'
alias _expand=_bash_expand