diff options
author | Alexandros Giouzenis <alexandrosg@gmail.com> | 2015-02-03 18:58:09 +0200 |
---|---|---|
committer | Alexandros Giouzenis <alexandrosg@gmail.com> | 2015-02-15 18:29:26 +0200 |
commit | b39dbec7e9d49083be5d9034604f98f1a4d264fd (patch) | |
tree | a0d862362f05bcf7c10684d5a4bc4206f3476f94 /plugins/tmuxinator | |
parent | 550ccca91cb45fcf26a8f2c3c60da675b995e3f3 (diff) | |
download | zsh-b39dbec7e9d49083be5d9034604f98f1a4d264fd.tar.gz zsh-b39dbec7e9d49083be5d9034604f98f1a4d264fd.tar.bz2 zsh-b39dbec7e9d49083be5d9034604f98f1a4d264fd.zip |
Fix tmuxinator completion for symlinked dirs
Tmuxinator start command can be ommited
Fix #2812
Diffstat (limited to 'plugins/tmuxinator')
-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 ;; |