From 36ae0d245f6103956cf3577afa403abc956f23e5 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Sun, 14 Aug 2016 17:59:05 -0400 Subject: let's not mess with bash settings, but document how to install --- shell-integration/cbt-completions.bash | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 shell-integration/cbt-completions.bash (limited to 'shell-integration') 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 -- cgit v1.2.3