diff --git a/bash_completions.go b/bash_completions.go index ec0f633..2cea735 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -199,7 +199,7 @@ func postscript(out *bytes.Buffer, name string) { fmt.Fprintf(out, "__start_%s()\n", name) fmt.Fprintf(out, `{ local cur prev words cword - if declare -F _init_completions >/dev/null 2>&1; then + if declare -F _init_completion >/dev/null 2>&1; then _init_completion -s || return else __my_init_completion || return