diff --git a/bash_completions.go b/bash_completions.go index 485a9a3a..5637fe56 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -214,7 +214,7 @@ func writeFlagHandler(name string, annotations map[string][]string, out *bytes.B fmt.Fprintf(out, " flags_with_completion+=(%q)\n", name) ext := strings.Join(value, "|") - ext = "_filedir '@(" + ext + ")'" + ext = "_filedir " + ext fmt.Fprintf(out, " flags_completion+=(%q)\n", ext) } }