aboutsummaryrefslogblamecommitdiff
path: root/shell-integration/cbt-completions.zsh
blob: d8f2d6db9b443cc312e2e3bb20bb7d5977a6f2ea (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                                           

        
                                        


                   
# 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 complete)}" )
}

compctl -K _cbt cbt