Created
March 15, 2012 13:13
-
-
Save herval/2044137 to your computer and use it in GitHub Desktop.
My .bash_profile prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
# <rvm_ruby@gemset> (<git branch, if in a git folder>) @ <current path in disk> | |
PS1='\[\e[0;32m\]$(~/.rvm/bin/rvm-prompt i v g) $(parse_git_branch)\[\e[m\] @ \[\e[1;34m\]\w\[\e[m\] \[\e[m\] | |
\[\e[1;32m\]\$ \[\e[m\]\[\e[m\] ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment