From 8cdd1fe8259bb23a6b77ba7c7179bae26d8920d6 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Tue, 5 May 2015 01:06:13 +0900 Subject: [PATCH] Add flags_completion as without @ format to _filedir --- bash_completions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }