diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-08 20:12:04 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-08 20:31:31 +0200 |
commit | 929d7093644e4f6b83ef366b83b5b66be075736e (patch) | |
tree | d04549c39cc71d89d969da807d294d446020c16b /commands | |
parent | b8e9e581b193d32684c685aa73a6890385f879c3 (diff) | |
download | git-bug-929d7093644e4f6b83ef366b83b5b66be075736e.tar.gz |
bash completion: thanks to @tst2005, make the completion works for "git bug <command>"
Diffstat (limited to 'commands')
-rw-r--r-- | commands/root.go | 6 |
1 files changed, 6 insertions, 0 deletions
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() { |