4be8c5144660a3a5cf0574153d00981afc87ac48

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #2258 from amilaperera/master

getting the projects name correctly and making compdef to work with mux ...

Diff

 1diff --git a/plugins/tmuxinator/_tmuxinator b/plugins/tmuxinator/_tmuxinator
 2index f0ff304ddbf5c1d32d28a84c3f1c1267eb604bec..1176852798d2c2b62633cf679ef98d84a6d96d67 100644
 3--- a/plugins/tmuxinator/_tmuxinator
 4+++ b/plugins/tmuxinator/_tmuxinator
 5@@ -1,4 +1,4 @@
 6-#compdef tmuxinator
 7+#compdef tmuxinator mux
 8 #autoload
 9 
10 local curcontext="$curcontext" state line ret=1
11@@ -25,7 +25,7 @@ case $state in
12   args)
13     case $line[1] in
14       start|open|copy|delete)
15-        _configs=(`tmuxinator list | sed -n 's/^[ \t]\+//p'`)
16+        _configs=(`find ~/.tmuxinator/ -name \*.yml | cut -d/ -f5 | sed s:.yml::g`)
17         _values 'configs' $_configs
18         ret=0
19         ;;
20@@ -33,4 +33,4 @@ case $state in
21     ;;
22 esac
23 
24-return ret
25+return ret