Skip to content

Instantly share code, notes, and snippets.

@markmcdonald51
Created September 16, 2009 23:47
Show Gist options
  • Save markmcdonald51/188245 to your computer and use it in GitHub Desktop.
Save markmcdonald51/188245 to your computer and use it in GitHub Desktop.
export PS1="\[\033[01;34m\] \w \[\033[31m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.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