Allow zsh completion to be autoloaded by compinit
parent
7a7bd457f2
commit
2dea4e1051
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue