Skip to content
Newer
Older
100644 13 lines (10 sloc) 283 Bytes
03424fd @andrewtch Symfony 2 completion
andrewtch authored Dec 18, 2011
1 # Symfony2 basic command completion
2
3 _symfony2_get_command_list () {
4 app/console --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
5 }
6
7 _symfony2 () {
8 if [ -f app/console ]; then
9 compadd `_symfony2_get_command_list`
10 fi
11 }
12
13 compdef _symfony2 app/console
Something went wrong with that request. Please try again.