Skip to content

Instantly share code, notes, and snippets.

@jazzychad
Created March 15, 2012 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazzychad/2041309 to your computer and use it in GitHub Desktop.
Save jazzychad/2041309 to your computer and use it in GitHub Desktop.
PS1
[\[\e[0;33m\]\!\[\e[0m\]] `if [ \$? = 0 ]; then echo \[\e[0m\]^_^\[\e[0m\]; else echo \[\e[31m\]O_O\[\e[0m\]; fi` [\[\e[0;34\]m\u\[\e[0m\]@\[\e[0;36m\]\h\[\e[0m\]:\[\e[0;37m\]\W\[\e[0m\]]$(git branch &>/dev/null; if [ $? -eq 0 ]; then echo "\[\e[01;33m\]($(git branch | grep ^*|sed s/\*\ //))\[\e[00m\]"; fi)\[\e[0;31m\]\\$\[\e[0m\]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment