You must have brew
installed
- Open the Terminal and enter
brew install bash-completion
. - Now enter
open ~/.bash_profile
. - At the end of the file paste the code below:
# Bash completion
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion