Skip to content

Instantly share code, notes, and snippets.

@rmax
Created November 9, 2011 02:41
Show Gist options
  • Select an option

  • Save rmax/1350162 to your computer and use it in GitHub Desktop.

Select an option

Save rmax/1350162 to your computer and use it in GitHub Desktop.
bash prompt
# http://i.imgur.com/Tg068.png
PS1='\[\033[01;34m\]`if [ \$? = 0 ]; then echo \[\e[0\;32m\]\(^_^\); else echo \[\e[0\;31m\]\(0_0\); fi` ~ ${SECONDS}s\n\[\e[1;34m\][\t \u@\h:\w]\n\[\033[1;35m\]$>\[\033[00m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment