bash-completion

Programmable completion for Bash 3.2 and later versions

brewmacoslinux
Try with needOr install directly
Source

About

Programmable completion for Bash 3.2

Commands

bash-completion

Examples

Source bash-completion in your shell configuration to enable completions$ source $(brew --prefix)/etc/bash_completion
Enable completions for git commands and branches$ git ch<TAB>
Auto-complete package names with brew commands$ brew install bash-com<TAB>