Programmable completion for Bash 3.2 and later versions
Programmable completion for Bash 3.2
bash-completion
$ source $(brew --prefix)/etc/bash_completion
$ git ch<TAB>
$ brew install bash-com<TAB>