2018-06-12 10:20:10 -07:00
|
|
|
_tmuxinator() {
|
|
|
|
local commands projects
|
|
|
|
commands=(${(f)"$(tmuxinator commands zsh)"})
|
|
|
|
projects=(${(f)"$(tmuxinator completions start)"})
|
2011-12-02 03:32:15 -07:00
|
|
|
|
2018-06-12 10:20:10 -07:00
|
|
|
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)'
|
|
|
|
;;
|
2011-12-02 03:32:15 -07:00
|
|
|
esac
|
2018-06-12 10:20:10 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|
2011-12-02 03:32:15 -07:00
|
|
|
|
2018-06-12 10:20:10 -07:00
|
|
|
compdef _tmuxinator tmuxinator mux
|
|
|
|
alias mux="tmuxinator"
|