Installing bash-completion with Homebrew
To install bash-completion, you have to:
brew install bash-completion
And add the following to your ~/.bash_profile:
if -f $(brew --prefix)/etc/bash_completion » ; then
. $(brew --prefix)/etc/bash_completion
fi