By default Mac uses ZSH for their Terminal. But ZSH comes with basic autocomplete function. To make ZSH Autocompletion Completion Better or efficient follow Below Commands.

Open ZSHRC file in ETC folder with command

sudo nano /etc/zshrc

Paste Below Code into ZSHRC file.

# Autocompletion by Siddharth Sangwan
autoload -Uz compinit && compinit

zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*'