_tmuxinator 637 B

123456789101112131415161718192021222324252627282930
  1. #compdef tmuxinator mux
  2. _tmuxinator() {
  3. local commands projects
  4. commands=(${(f)"$(tmuxinator commands zsh)"})
  5. projects=(${(f)"$(tmuxinator completions start)"})
  6. if (( CURRENT == 2 )); then
  7. _describe -t commands "tmuxinator subcommands" commands
  8. _describe -t projects "tmuxinator projects" projects
  9. elif (( CURRENT == 3)); then
  10. case $words[2] in
  11. copy|debug|delete|open|start)
  12. _arguments '*:projects:($projects)'
  13. ;;
  14. esac
  15. fi
  16. return
  17. }
  18. _tmuxinator
  19. # Local Variables:
  20. # mode: Shell-Script
  21. # sh-indentation: 2
  22. # indent-tabs-mode: nil
  23. # sh-basic-offset: 2
  24. # End:
  25. # vim: ft=zsh sw=2 ts=2 et