diff options
author | Robby Russell <robby@planetargon.com> | 2015-02-22 10:14:28 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-02-22 10:14:28 -0800 |
commit | 6809b42b65615019a182d0f0288ffc6d702ff7f9 (patch) | |
tree | 9056f34f354c604dc51d027e6951fe03a0e11414 /plugins | |
parent | 983c0c94a1ed9c604289cf3305c4522ec7c71c87 (diff) | |
parent | b39dbec7e9d49083be5d9034604f98f1a4d264fd (diff) | |
download | zsh-6809b42b65615019a182d0f0288ffc6d702ff7f9.tar.gz zsh-6809b42b65615019a182d0f0288ffc6d702ff7f9.tar.bz2 zsh-6809b42b65615019a182d0f0288ffc6d702ff7f9.zip |
Merge pull request #3541 from agios/tmuxinator
Tmuxinator plugin improvements
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/tmuxinator/_tmuxinator | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/tmuxinator/_tmuxinator b/plugins/tmuxinator/_tmuxinator index e4f8b6ce0..551267ed2 100644 --- a/plugins/tmuxinator/_tmuxinator +++ b/plugins/tmuxinator/_tmuxinator @@ -8,6 +8,8 @@ _arguments -C \ '1: :->cmds' \ '2:: :->args' && ret=0 +_configs=(${$(echo ~/.tmuxinator/*.yml):r:t}) + case $state in cmds) _values "tmuxinator command" \ @@ -21,13 +23,13 @@ case $state in "list[list all existing projects]" \ "doctor[look for problems in your configuration]" \ "help[shows this help document]" \ - "version[shows tmuxinator version number]" + "version[shows tmuxinator version number]" \ + $_configs ret=0 ;; args) case $line[1] in start|open|copy|delete|debug) - _configs=(`find ~/.tmuxinator -name \*.yml | cut -d/ -f5 | sed s:.yml::g`) [[ -n "$_configs" ]] && _values 'configs' $_configs ret=0 ;; |