Skip to content

Instantly share code, notes, and snippets.

@arzumy
Created June 16, 2010 17:01
Show Gist options
  • Select an option

  • Save arzumy/440960 to your computer and use it in GitHub Desktop.

Select an option

Save arzumy/440960 to your computer and use it in GitHub Desktop.
export PS1="\[\033[00m\]\u@\h\[\033[00m\]:\[\033[00m\]\w\[\e[1;35m\] \`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[00m\]$\[\033[00m\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment