Show branch name in terminal prompt

Robert - git, bash, terminal
Shared on

export PS1="\W \[\e[0;36m\]\$(git rev-parse --abbrev-ref HEAD 2> /dev/null)\[\e[0m\]\$ "


Tweet