Skip to content

Instantly share code, notes, and snippets.

@juanjoseijas
Created December 9, 2012 18:09
Show Gist options
  • Save juanjoseijas/4246328 to your computer and use it in GitHub Desktop.
Save juanjoseijas/4246328 to your computer and use it in GitHub Desktop.
Bash profile showing Ruby version and git branch
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