Merge pull request #3065 from posva/tmuxinator-update
Update tmuxinator autocompletion
Diff
1diff --git a/plugins/tmuxinator/_tmuxinator b/plugins/tmuxinator/_tmuxinator
2index cd227b7dfeb8521517fb52018ca10f02b07013a1..e4f8b6ce02c54707c75d0385f5d2113ba3b55bb7 100644
3--- a/plugins/tmuxinator/_tmuxinator
4+++ b/plugins/tmuxinator/_tmuxinator
5@@ -11,10 +11,12 @@ _arguments -C \
6 case $state in
7 cmds)
8 _values "tmuxinator command" \
9+ "new[create a new project file and open it in your editor]" \
10 "start[start a tmux session using project's tmuxinator config]" \
11 "open[create a new project file and open it in your editor]" \
12 "copy[copy source_project project file to a new project called new_project]" \
13 "delete[deletes the project called project_name]" \
14+ "debug[output the shell commands generated by a projet]" \
15 "implode[deletes all existing projects!]" \
16 "list[list all existing projects]" \
17 "doctor[look for problems in your configuration]" \
18@@ -24,9 +26,9 @@ case $state in
19 ;;
20 args)
21 case $line[1] in
22- start|open|copy|delete)
23+ start|open|copy|delete|debug)
24 _configs=(`find ~/.tmuxinator -name \*.yml | cut -d/ -f5 | sed s:.yml::g`)
25- _values 'configs' $_configs
26+ [[ -n "$_configs" ]] && _values 'configs' $_configs
27 ret=0
28 ;;
29 esac