aboutsummaryrefslogtreecommitdiff
path: root/shell-integration
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-09-13 13:51:17 +0100
committerChristopher Vogt <oss.nsp@cvogt.org>2016-09-13 13:51:17 +0100
commit356ff2ec817dbc65f27ec37e644204359ec84210 (patch)
tree6a3654b3cb6bacb45fe0862bc0ee8fff9bf66e31 /shell-integration
parentede10d4d0e139eb8f831b7241d29fb82d8996e73 (diff)
downloadcbt-356ff2ec817dbc65f27ec37e644204359ec84210.tar.gz
cbt-356ff2ec817dbc65f27ec37e644204359ec84210.tar.bz2
cbt-356ff2ec817dbc65f27ec37e644204359ec84210.zip
add fish shell task name completions and fix bash task name completions
Diffstat (limited to 'shell-integration')
-rwxr-xr-xshell-integration/cbt-completions.bash2
-rw-r--r--shell-integration/cbt-completions.fish1
2 files changed, 2 insertions, 1 deletions
diff --git a/shell-integration/cbt-completions.bash b/shell-integration/cbt-completions.bash
index c591321..925ba4b 100755
--- a/shell-integration/cbt-completions.bash
+++ b/shell-integration/cbt-completions.bash
@@ -5,7 +5,7 @@ __cbt()
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
- opts="$(cbt usage)"
+ opts="$(cbt taskNames)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
}
diff --git a/shell-integration/cbt-completions.fish b/shell-integration/cbt-completions.fish
new file mode 100644
index 0000000..6e543fb
--- /dev/null
+++ b/shell-integration/cbt-completions.fish
@@ -0,0 +1 @@
+complete -c cbt -a (cbt taskNames)