tmuxinator.zsh 370 B

12345678910111213141516171819
  1. # Completion of tmuxinator project names
  2. if [[ ! -o interactive ]]; then
  3. return
  4. fi
  5. compctl -K _tmuxinator tmuxinator mux
  6. _tmuxinator() {
  7. local words completions
  8. read -cA words
  9. if [ "${#words}" -eq 2 ]; then
  10. completions="$(tmuxinator commands)"
  11. else
  12. completions="$(tmuxinator completions ${words[2,-2]})"
  13. fi
  14. reply=("${(ps:\n:)completions}")
  15. }