aboutsummaryrefslogtreecommitdiffstats
path: root/doc/zsh_completion
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-20 16:08:55 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-20 16:08:55 +0200
commit35240350eab9525d63361915c30d467edc108d57 (patch)
tree6d94cdaca39bb5ef72b4e0247ad8f278cafc5030 /doc/zsh_completion
parent302a69bfc5c1de153455a813ef14c170452305f0 (diff)
downloadgit-bug-35240350eab9525d63361915c30d467edc108d57.tar.gz
generate zsh completion
Diffstat (limited to 'doc/zsh_completion')
-rw-r--r--doc/zsh_completion/git-bug20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/zsh_completion/git-bug b/doc/zsh_completion/git-bug
new file mode 100644
index 00000000..ce85f435
--- /dev/null
+++ b/doc/zsh_completion/git-bug
@@ -0,0 +1,20 @@
+#compdef git-bug
+
+_arguments \
+ '1: :->level1' \
+ '2: :_files'
+case $state in
+ level1)
+ case $words[1] in
+ git-bug)
+ _arguments '1: :(close commands comment label ls new open pull push show webui)'
+ ;;
+ *)
+ _arguments '*: :_files'
+ ;;
+ esac
+ ;;
+ *)
+ _arguments '*: :_files'
+ ;;
+esac