diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-06 06:59:23 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-12 14:59:59 -0400 |
commit | 9cf4a6a1023dda70072b76bd881efbd12c2270d1 (patch) | |
tree | 9034f832c4277331b726a427a3cd89b1a9f5cdae /shell-integration/cbt-completions.zsh | |
parent | 796a9f55e9400fb517ab918ad980a6eeeae58b85 (diff) | |
download | cbt-9cf4a6a1023dda70072b76bd881efbd12c2270d1.tar.gz cbt-9cf4a6a1023dda70072b76bd881efbd12c2270d1.tar.bz2 cbt-9cf4a6a1023dda70072b76bd881efbd12c2270d1.zip |
rename taskNames to complete and pass in current readline buffer in fish
for zsh and bash this still needs to be done. Also interpreting the
buffer to complete the current command
Diffstat (limited to 'shell-integration/cbt-completions.zsh')
-rwxr-xr-x | shell-integration/cbt-completions.zsh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell-integration/cbt-completions.zsh b/shell-integration/cbt-completions.zsh index d11307d..d8f2d6d 100755 --- a/shell-integration/cbt-completions.zsh +++ b/shell-integration/cbt-completions.zsh @@ -1,7 +1,9 @@ -#! /usr/bin/env zsh +# this does currently not support for completion of nested methods, e.g. snapshot.comp<tab> +# zsh should be able to do that via $BUFFER, see +# http://unix.stackexchange.com/questions/14230/zsh-tab-completion-on-empty-line _cbt() { - reply=( "${(ps:\n:)$(cbt taskNames)}" ) + reply=( "${(ps:\n:)$(cbt complete)}" ) } compctl -K _cbt cbt |