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 x86_64 big sur, catalina, mojave, 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,888
bash-completion@2 --HEAD 3
Installs on Request (30 days)
bash-completion@2 1,886
bash-completion@2 --HEAD 3
Build Errors (30 days)
bash-completion@2 0
Installs (90 days)
bash-completion@2 6,184
bash-completion@2 --HEAD 17
Installs on Request (90 days)
bash-completion@2 6,156
bash-completion@2 --HEAD 17
Installs (365 days)
bash-completion@2 33,602
bash-completion@2 --HEAD 130
Installs on Request (365 days)
bash-completion@2 33,244
bash-completion@2 --HEAD 130
Fork me on GitHub