my xfce4 dotfiles
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.

23 lines
526 B

3 years ago
  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