Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. BLUE1="\[\033[0;34m\]"
  2. BLUE2="\[\033[1;34m\]"
  3. GREY1="\[\033[0;37m\]"
  4. GREY2="\[\033[1;30m\]"
  5. GREEN1="\[\033[0;32m\]"
  6. GREEN2="\[\033[1;32m\]"
  7. YELLOW1="\[\033[1;33m\]"
  8. RED1="\[\033[0;31m\]"
  9. RED2="\[\033[1;31m\]"
  10. WHITE1="\[\033[1;37m\]"
  11. END="\[\033[0m\]"
  12.  
  13. PS1="$WHITE1($BLUE2\u$GREY2@$YELLOW1\h$WHITE1)($GREEN2\w$WHITE1) \$(git branch 2> /dev/null | grep -e '\* ' | sed 's/^..\(.*\)/$WHITE1{\1}$GREY2/') $END"