diff options
author | Robby Russell <robby@planetargon.com> | 2013-12-03 00:03:34 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-12-03 00:03:34 -0800 |
commit | 4be8c5144660a3a5cf0574153d00981afc87ac48 (patch) | |
tree | fcaed39263d306f240d7e0ddd5d5d901c1b5ead0 | |
parent | b764fad27136a2ab3b7eaccc18ca16bbfe21ed68 (diff) | |
parent | 27d048aa5729dfb9fa8119bc8ed4abb61619d7ea (diff) | |
download | zsh-4be8c5144660a3a5cf0574153d00981afc87ac48.tar.gz zsh-4be8c5144660a3a5cf0574153d00981afc87ac48.tar.bz2 zsh-4be8c5144660a3a5cf0574153d00981afc87ac48.zip |
Merge pull request #2258 from amilaperera/master
getting the projects name correctly and making compdef to work with mux ...
-rw-r--r-- | plugins/tmuxinator/_tmuxinator | 6 |
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 |