install:
sudo aptitude install bash-completion
wget https://raw.github.com/qbbr/symfony2-autocomplete/master/symfony2-autocomplete.bash
sudo mv symfony2-autocomplete.bash /etc/bash_completion.d/
add the following line to your ~/.bashrc:
if [ -e ~/symfony2-autocomplete.bash ]; then
. ~/symfony2-autocomplete.bash
fi