2
0

_tmuxinator 526 B

1234567891011121314151617181920212223
  1. #compdef tmuxinator mux
  2. #autoload
  3. _tmuxinator() {
  4. local commands projects
  5. commands=(${(f)"$(tmuxinator commands zsh)"})
  6. projects=(${(f)"$(tmuxinator completions start)"})
  7. if (( CURRENT == 2 )); then
  8. _describe -t commands "tmuxinator subcommands" commands
  9. _describe -t projects "tmuxinator projects" projects
  10. elif (( CURRENT == 3)); then
  11. case $words[2] in
  12. copy|debug|delete|open|start)
  13. _arguments '*:projects:($projects)'
  14. ;;
  15. esac
  16. fi
  17. return
  18. }
  19. compdef _tmuxinator tmuxinator