aboutsummaryrefslogtreecommitdiff
path: root/shell-integration/cbt-completions.bash
diff options
context:
space:
mode:
Diffstat (limited to 'shell-integration/cbt-completions.bash')
-rwxr-xr-xshell-integration/cbt-completions.bash13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell-integration/cbt-completions.bash b/shell-integration/cbt-completions.bash
new file mode 100755
index 0000000..c591321
--- /dev/null
+++ b/shell-integration/cbt-completions.bash
@@ -0,0 +1,13 @@
+#!/bin/bash
+__cbt()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="$(cbt usage)"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+}
+
+complete -F __cbt cbt