]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/tmuxinator/_tmuxinator
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / tmuxinator / _tmuxinator
1 #compdef tmuxinator mux
2 #autoload
3
4 _tmuxinator() {
5   local commands projects
6   commands=(${(f)"$(tmuxinator commands zsh)"})
7   projects=(${(f)"$(tmuxinator completions start)"})
8
9   if (( CURRENT == 2 )); then
10     _describe -t commands "tmuxinator subcommands" commands
11     _describe -t projects "tmuxinator projects" projects
12   elif (( CURRENT == 3)); then
13     case $words[2] in
14       copy|debug|delete|open|start)
15         _arguments '*:projects:($projects)'
16       ;;
17     esac
18   fi
19
20   return
21 }
22
23 compdef _tmuxinator tmuxinator