From cd6dd313979e68cb4f700ad87387076e77b94572 Mon Sep 17 00:00:00 2001 From: Dusty Rip Date: Sun, 15 Jul 2018 17:26:27 +0200 Subject: [PATCH] Allow zsh completion to be autoloaded by compinit --- cmd/helm/completion.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/helm/completion.go b/cmd/helm/completion.go index b1cd04140..e83a32a13 100644 --- a/cmd/helm/completion.go +++ b/cmd/helm/completion.go @@ -82,6 +82,8 @@ func runCompletionBash(out io.Writer, cmd *cobra.Command) error { func runCompletionZsh(out io.Writer, cmd *cobra.Command) error { zshInitialization := ` +#compdef helm + __helm_bash_source() { alias shopt=':' alias _expand=_bash_expand