arzumy
6/16/2010 - 5:01 PM

show git branch

export PS1="\[\033[00m\]\u@\h\[\033[00m\]:\[\033[00m\]\w\[\e[1;35m\] \`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[00m\]$\[\033[00m\] "