From 54eb8b2f722068db191b1b3b86bf76a1d19f4975 Mon Sep 17 00:00:00 2001 From: dongweiming Date: Tue, 2 Jul 2013 23:09:55 +0800 Subject: [PATCH] Modify tmuxinator has a bug when no project --- plugins/tmuxinator/_tmuxinator | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/tmuxinator/_tmuxinator b/plugins/tmuxinator/_tmuxinator index f0ff304dd..afa0067b3 100644 --- a/plugins/tmuxinator/_tmuxinator +++ b/plugins/tmuxinator/_tmuxinator @@ -25,12 +25,13 @@ case $state in args) case $line[1] in start|open|copy|delete) - _configs=(`tmuxinator list | sed -n 's/^[ \t]\+//p'`) - _values 'configs' $_configs + _configs=$(tmuxinator list | sed -n 's/^[ \t]\+//p') + + test "x$_configs" != "x" && compadd $_configs ret=0 ;; esac ;; esac -return ret \ No newline at end of file +return ret