This is a detailed tutorial on how to customize and show the git branch name on your zsh terminal in MacOS or Linux.
Watch in HD for better clarity.
Get the git-prompt.sh from here: https://github.com/git/git/blob/maste...
Tutorial on customizing and colorizing zsh: https://www.makeuseof.com/customize-z...
Click on subscribe button to subscribe to the channel.
The final command generated is as follows:source ~/git-prompt.shsetopt PROMPT_SUBST ; PS1='%F{cyan}%~%f%B%F{yellow}$(__git_ps1 " (%s)")%f%b\$ '
[Video] Show git branch name in Ubuntu Linux terminal on bash prompt: • Show git branch name in Ubuntu Linux ...