Install command:
brew install bash-completion@2

Formerly known as: bash-completion2

Programmable completion for Bash 4.2+

License: GPL-2.0

/api/formula/bash-completion@2.json (JSON API)

Formula code on GitHub

Bottle (binary package) installation support provided for macOS releases:

Intel big sur
high sierra
Apple Silicon big sur

Current versions:

stable 2.11
head ⚡️ HEAD

Depends on:

bash 5.1.4 Bourne-Again SHell, a UNIX command interpreter

Conflicts with: bash-completion

Add the following line to your ~/.bash_profile:
    [[ -r "$(brew --prefix)/etc/profile.d/" ]] && . "$(brew --prefix)/etc/profile.d/"


Installs (30 days)
bash-completion@2 1,954
bash-completion@2 --HEAD 7
Installs on Request (30 days)
bash-completion@2 1,955
bash-completion@2 --HEAD 7
Build Errors (30 days)
bash-completion@2 0
Installs (90 days)
bash-completion@2 6,004
bash-completion@2 --HEAD 20
Installs on Request (90 days)
bash-completion@2 6,005
bash-completion@2 --HEAD 20
Installs (365 days)
bash-completion@2 29,071
bash-completion@2 --HEAD 108
Installs on Request (365 days)
bash-completion@2 28,865
bash-completion@2 --HEAD 108
Fork me on GitHub