macOS does not have Bash autocomplete feature installed and enabled by default as Linux distributions like Ubuntu. You will have to install and configure the bash-completion program for macOS to enable it, which is available via Homebrew.
bash-completion can be installed and enabled in macOS from the terminal.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install bash-completion
$ . /usr/local/etc/bash_completion
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
Comment anonymously. Login not required.