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)

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

Formula code on GitHub

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

Intel big sur
high sierra
64-bit linux
Apple Silicon big sur

Current versions:

stable 2.11
head ⚡️ HEAD

Depends on:

bash 5.1.8 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,756
bash-completion@2 --HEAD 4
Installs on Request (30 days)
bash-completion@2 1,754
bash-completion@2 --HEAD 4
Build Errors (30 days)
bash-completion@2 0
Installs (90 days)
bash-completion@2 5,530
bash-completion@2 --HEAD 22
Installs on Request (90 days)
bash-completion@2 5,525
bash-completion@2 --HEAD 22
Installs (365 days)
bash-completion@2 25,797
bash-completion@2 --HEAD 93
Installs on Request (365 days)
bash-completion@2 25,692
bash-completion@2 --HEAD 93
Fork me on GitHub