浏览代码

plugin symfony2 sf2.7 compatibility fix

with symfony 2.7 command group titles are listed as commands. this commit prevents it.
fgibaux 8 年之前
父节点
当前提交
a9daea17d8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/symfony2/symfony2.plugin.zsh

+ 1 - 1
plugins/symfony2/symfony2.plugin.zsh

@@ -5,7 +5,7 @@ _symfony_console () {
 }
 
 _symfony2_get_command_list () {
-   `_symfony_console` --no-ansi | sed "1,/Available commands/d" | awk '/^  ?[a-z]+/ { print $1 }'
+   `_symfony_console` --no-ansi | sed "1,/Available commands/d" | awk '/^  ?[^ ]+ / { print $1 }'
 }
 
 _symfony2 () {