diff --git a/nushell_completions.go b/nushell_completions.go index 0fd02ea..8523652 100644 --- a/nushell_completions.go +++ b/nushell_completions.go @@ -23,6 +23,7 @@ import ( func (c *Command) GenNushellCompletion(w io.Writer, includeDesc bool) error { buf := new(bytes.Buffer) + WriteStringAndCheck(buf, "# nushell completion -*- shell-script -*- \n") WriteStringAndCheck(buf, fmt.Sprintf(` let cobra_completer = {|spans| let ShellCompDirectiveError = %[1]d