Created
December 9, 2012 18:09
-
-
Save juanjoseijas/4246328 to your computer and use it in GitHub Desktop.
Bash profile showing Ruby version and git branch
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
export PS1='\e[0:35m⌘\e[m \e[0;33m $(ruby -e "print RUBY_VERSION")\e[m \e[0:36m\w/\e[m \e[0:33m`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\e[m' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment