aboutsummaryrefslogtreecommitdiff
path: root/shell-integration
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-08-14 17:59:05 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-08-28 23:38:05 -0400
commit36ae0d245f6103956cf3577afa403abc956f23e5 (patch)
treeb6c4d8b65b5bd5921fb49678eb696b1a1b24db02 /shell-integration
parent1114a970940633d8cfb7b018ce4d71dc1544b5e5 (diff)
downloadcbt-36ae0d245f6103956cf3577afa403abc956f23e5.tar.gz
cbt-36ae0d245f6103956cf3577afa403abc956f23e5.tar.bz2
cbt-36ae0d245f6103956cf3577afa403abc956f23e5.zip
let's not mess with bash settings, but document how to install
Diffstat (limited to 'shell-integration')
-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