1 # Symfony2 basic command completion
3 _symfony2_get_command_list
() {
4 app
/console
--no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
8 if [ -f app
/console
]; then
9 compadd
`_symfony2_get_command_list`
13 compdef _symfony2 app
/console
17 alias sf2
='php app/console'
18 alias sf2clear
='php app/console cache:clear'