Browse Source

Fixed command autocomplete for Symfony 2.6.x

Ion Marusic 9 years ago
parent
commit
011f25d492
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/symfony2/symfony2.plugin.zsh

+ 2 - 2
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 '/^  ?[a-z]+/ { print $1 }'
 }
 
 _symfony2 () {
@@ -23,4 +23,4 @@ alias sfcl='sf cache:clear'
 alias sfcw='sf cache:warmup'
 alias sfroute='sf router:debug'
 alias sfcontainer='sf container:debug'
-alias sfgb='sf generate:bundle'
+alias sfgb='sf generate:bundle'