branch aware PS1
For git-branch aware PS1 in your terminal add the following to .bashrc
function git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\e[0;31m@\H: \e[1;37m\w\e[01;32m\$(git_branch)\e[0;0m\]:\n$"
Sample PS1
