| 1 | 1 | new file mode 100644 | 
| ... | ... | @@ -0,0 +1,13 @@ | 
| 0 | +# Symfony2 basic command completion | |
| 1 | + | |
| 2 | +_symfony2_get_command_list () { | |
| 3 | +	app/console --no-ansi | sed "1,/Available commands/d" | awk '/^  [a-z]+/ { print $1 }' | |
| 4 | +} | |
| 5 | + | |
| 6 | +_symfony2 () { | |
| 7 | + if [ -f app/console ]; then | |
| 8 | + compadd `_symfony2_get_command_list` | |
| 9 | + fi | |
| 10 | +} | |
| 11 | + | |
| 12 | +compdef _symfony2 app/console | |
| 0 | 13 | \ No newline at end of file |