6809b42b65615019a182d0f0288ffc6d702ff7f9
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #3541 from agios/tmuxinator
Tmuxinator plugin improvements
Diff
1diff --git a/plugins/tmuxinator/_tmuxinator b/plugins/tmuxinator/_tmuxinator
2index e4f8b6ce02c54707c75d0385f5d2113ba3b55bb7..551267ed200e34faeeac04fc8cda8f04c5fd9de2 100644
3--- a/plugins/tmuxinator/_tmuxinator
4+++ b/plugins/tmuxinator/_tmuxinator
5@@ -8,6 +8,8 @@ _arguments -C \
6 '1: :->cmds' \
7 '2:: :->args' && ret=0
8
9+_configs=(${$(echo ~/.tmuxinator/*.yml):r:t})
10+
11 case $state in
12 cmds)
13 _values "tmuxinator command" \
14@@ -21,13 +23,13 @@ case $state in
15 "list[list all existing projects]" \
16 "doctor[look for problems in your configuration]" \
17 "help[shows this help document]" \
18- "version[shows tmuxinator version number]"
19+ "version[shows tmuxinator version number]" \
20+ $_configs
21 ret=0
22 ;;
23 args)
24 case $line[1] in
25 start|open|copy|delete|debug)
26- _configs=(`find ~/.tmuxinator -name \*.yml | cut -d/ -f5 | sed s:.yml::g`)
27 [[ -n "$_configs" ]] && _values 'configs' $_configs
28 ret=0
29 ;;