| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #compdef tmuxinator mux
- # ------------------------------------------------------------------------------
- # Description
- # -----------
- #
- # Completion script for tmuxinator (https://github.com/tmuxinator/tmuxinator)
- #
- # ------------------------------------------------------------------------------
- # Authors
- # -------
- #
- # * Christopher Chow (https://github.com/Soliah)
- #
- # ------------------------------------------------------------------------------
- _tmuxinator() {
- local commands projects
- commands=(${(f)"$(tmuxinator commands zsh)"})
- projects=(${(f)"$(tmuxinator completions start)"})
- if (( CURRENT == 2 )); then
- _describe -t commands "tmuxinator subcommands" commands
- _describe -t projects "tmuxinator projects" projects
- elif (( CURRENT == 3)); then
- case $words[2] in
- copy|debug|delete|open|start)
- _arguments '*:projects:($projects)'
- ;;
- esac
- fi
- return
- }
- _tmuxinator
- # Local Variables:
- # mode: Shell-Script
- # sh-indentation: 2
- # indent-tabs-mode: nil
- # sh-basic-offset: 2
- # End:
- # vim: ft=zsh sw=2 ts=2 et
|