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
23 lines
526 B
#compdef tmuxinator mux
|
|
#autoload
|
|
|
|
_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
|