summaryrefslogtreecommitdiff
path: root/plugins/tmuxinator/_tmuxinator
diff options
context:
space:
mode:
authorAmila Perera <perera.amila@gmail.com>2013-11-13 00:35:19 +0530
committerAmila Perera <perera.amila@gmail.com>2013-11-13 00:35:19 +0530
commit4e7b0fe083ecc99c1ea8c250d8b9cfcde09f2cd3 (patch)
treedcb43446afefcbcca52b2437aa205d405953cd5d /plugins/tmuxinator/_tmuxinator
parente30a1243dc89814e9f31e4b4cc284d948ecbfbd8 (diff)
downloadzsh-4e7b0fe083ecc99c1ea8c250d8b9cfcde09f2cd3.tar.gz
zsh-4e7b0fe083ecc99c1ea8c250d8b9cfcde09f2cd3.tar.bz2
zsh-4e7b0fe083ecc99c1ea8c250d8b9cfcde09f2cd3.zip
getting the projects name correctly and making compdef to work with mux alias
Diffstat (limited to 'plugins/tmuxinator/_tmuxinator')
-rw-r--r--plugins/tmuxinator/_tmuxinator6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/tmuxinator/_tmuxinator b/plugins/tmuxinator/_tmuxinator
index f0ff304dd..117685279 100644
--- a/plugins/tmuxinator/_tmuxinator
+++ b/plugins/tmuxinator/_tmuxinator
@@ -1,4 +1,4 @@
-#compdef tmuxinator
+#compdef tmuxinator mux
#autoload
local curcontext="$curcontext" state line ret=1
@@ -25,7 +25,7 @@ case $state in
args)
case $line[1] in
start|open|copy|delete)
- _configs=(`tmuxinator list | sed -n 's/^[ \t]\+//p'`)
+ _configs=(`find ~/.tmuxinator/ -name \*.yml | cut -d/ -f5 | sed s:.yml::g`)
_values 'configs' $_configs
ret=0
;;
@@ -33,4 +33,4 @@ case $state in
;;
esac
-return ret \ No newline at end of file
+return ret