bash-completion@2

Programmable completion for Bash 4.2+ with enhanced tab completion

brewmacoslinux
Try with needOr install directly
Source

About

Programmable completion for Bash 4.2+

Commands

bash-completion

Examples

Source bash-completion in your .bashrc to enable completions$ echo 'source $(brew --prefix)/etc/profile.d/bash_completion.sh' >> ~/.bashrc
Enable completion for a specific command like git$ git clone <tab>
View available completion scripts in the installation directory$ ls $(brew --prefix)/etc/bash_completion.d/