I have following code in my .zshrc
file.
When I go to my repos and the git branch name is not showing up on the right side of the console until I source the .zshrc file with
source ~/.zshrc
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RPS1=`parse_git_branch`