b39dbec7e9d49083be5d9034604f98f1a4d264fd

Author
Alexandros Giouzenis <alexandrosg@gmail.com>
Committer
Alexandros Giouzenis <alexandrosg@gmail.com>
Date

Message

Fix tmuxinator completion for symlinked dirs

Tmuxinator start command can be ommited
Fix #2812

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         ;;