mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 22:00:08 +00:00
21 lines
518 B
Text
21 lines
518 B
Text
_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
|
|
}
|
|
|
|
compdef _tmuxinator tmuxinator mux
|
|
alias mux="tmuxinator"
|