Some Linux distributions such as Ubuntu comes with Bash completion by default. That enables auto-completion of application parameters rather than just the application names at the Bash terminal by pressing the tab key.

The functionality is provided by bash-completion program and it’s not a standard feature in macOS. You’ll have to do it via Homebrew (a third-party package manager for macOS) by following these steps;

  1. Install Homebrew

    $ /usr/bin/ruby -e "$(curl -fsSL"
  2. Install bash-completion via Homebrew

    $ brew install bash-completion
  3. Enable bash-completion

    $ . /usr/local/etc/bash_completion

To automatically enable bash completion when launching a new shell, add this to your ~/.bashrc or ~/.bash_profile

[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion