From 929d7093644e4f6b83ef366b83b5b66be075736e Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 8 Aug 2018 20:12:04 +0200 Subject: bash completion: thanks to @tst2005, make the completion works for "git bug " --- commands/root.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'commands') diff --git a/commands/root.go b/commands/root.go index be258199..67f05ebf 100644 --- a/commands/root.go +++ b/commands/root.go @@ -35,6 +35,12 @@ It use the same internal storage so it doesn't pollute your project. As you woul PersistentPreRunE: loadRepo, DisableAutoGenTag: true, + + BashCompletionFunction: ` +_git_bug() { + __start_git-bug "$@" +} +`, } func Execute() { -- cgit