Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
703 B

  1. #compdef _tmuxinator tmuxinator
  2. _tmuxinator() {
  3. local commands projects
  4. commands=(${(f)"$(tmuxinator commands zsh)"})
  5. projects=(${(f)"$(tmuxinator completions start)"})
  6. if (( CURRENT == 2 )); then
  7. _alternative \
  8. 'commands:: _describe -t commands "tmuxinator subcommands" commands' \
  9. 'projects:: _describe -t projects "tmuxinator projects" projects'
  10. elif (( CURRENT == 3)); then
  11. case $words[2] in
  12. copy|cp|c|debug|delete|rm|open|o|start|s|edit|e)
  13. _arguments '*:projects:($projects)'
  14. ;;
  15. esac
  16. fi
  17. return
  18. }
  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