From 58e38f95da0f549280085c99a0df322007c6375f Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Tue, 3 Nov 2015 15:09:37 -0500 Subject: [PATCH] Check for _init_completion not_init_completionS --- bash_completions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completions.go b/bash_completions.go index 25c69ec..c31b265 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -195,7 +195,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