Mac OS : Show your git branch name on your bash terminal ⚠️ Does not work in zsh terminal Add these lines in your ~/.bash_profile file # Show current git branch name parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' }