In my local bash, I could add git branch name on the bash command prompt by adding below code in ~/.bashrc
parse_git_branch() { git branch 2> /dev/null |