mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Fix symfony auto-completion for version 2.6+
The previous plugin assumes that command list has 2 spaces before each command. Symfony 2.6 has only one space for commands. This bug prevents autocomplete for Symfony 2.6+.
This commit is contained in:
parent
141c2e5934
commit
43f2d239ed
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ _symfony_console () {
|
||||||
}
|
}
|
||||||
|
|
||||||
_symfony2_get_command_list () {
|
_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 () {
|
_symfony2 () {
|
||||||
|
|
@ -23,4 +23,4 @@ alias sfcl='sf cache:clear'
|
||||||
alias sfcw='sf cache:warmup'
|
alias sfcw='sf cache:warmup'
|
||||||
alias sfroute='sf router:debug'
|
alias sfroute='sf router:debug'
|
||||||
alias sfcontainer='sf container:debug'
|
alias sfcontainer='sf container:debug'
|
||||||
alias sfgb='sf generate:bundle'
|
alias sfgb='sf generate:bundle'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue