Merge pull request #1248 from grahamc/add-symfony

Adding a symfony plugin, for symfony 1
This commit is contained in:
Robby Russell 2012-12-04 06:56:59 -08:00
commit 0118b5b759

View File

@ -0,0 +1,13 @@
# symfony basic command completion
_symfony_get_command_list () {
./symfony | sed "1,/Available tasks/d" | awk 'BEGIN { cat=null; } /^[A-Za-z]+$/ { cat = $1; } /^ :[a-z]+/ { print cat $1; }'
}
_symfony () {
if [ -f symfony ]; then
compadd `_symfony_get_command_list`
fi
}
compdef _symfony symfony