Skip to content

Instantly share code, notes, and snippets.

@olancheg
Created April 9, 2011 18:59
Show Gist options
  • Save olancheg/911671 to your computer and use it in GitHub Desktop.
Save olancheg/911671 to your computer and use it in GitHub Desktop.
export PS1="\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.split('\n').grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[37m\]$\[\033[00m\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment