Parent directory

_tmuxinator

526 bytes
 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
23compdef _tmuxinator tmuxinator