Check for _init_completion not_init_completionS

This commit is contained in:
Eric Paris 2015-11-03 15:09:37 -05:00
parent a22f212832
commit 58e38f95da
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ func postscript(out *bytes.Buffer, name string) {
fmt.Fprintf(out, "__start_%s()\n", name) fmt.Fprintf(out, "__start_%s()\n", name)
fmt.Fprintf(out, `{ fmt.Fprintf(out, `{
local cur prev words cword 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 _init_completion -s || return
else else
__my_init_completion || return __my_init_completion || return