4e7b0fe083ecc99c1ea8c250d8b9cfcde09f2cd3
- Author
- Amila Perera <perera.amila@gmail.com>
- Committer
- Amila Perera <perera.amila@gmail.com>
- Date
Message
getting the projects name correctly and making compdef to work with mux alias
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