Create a file in the Home directory. touch ~/git-prompt.sh
Copy these codes into the file. Link here
put below codes in ~/.zshrc
file
# auto complete on pressing TAB
autoload -Uz compinit && compinit
source ~/.git-prompt.sh
# zsh terminal prompt
setopt PROMPT_SUBST ; PS1='➤ %B%F{cyan}%n%f /%c$(__git_ps1 " ┫%s") $ '
Last but not least install latest Bash version, brew install bash