How to Install bash-completion on Mac using Brew

Package Information:

Name: bash-completion
Use: Programmable completion for Bash 3.2
URL: https://bash-completion.alioth.debian.org/

Installation Steps:

  1. Open Terminal using Spotlight search by pressing <command+space>. Type terminal and hit Enter key.
  2. Run the following command
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install bash-completion using brew
    brew install bash-completion

bash-completion is ready to use now!