Skip to content

Instantly share code, notes, and snippets.

@gardner
Created October 8, 2012 05:24
Show Gist options
  • Save gardner/3850856 to your computer and use it in GitHub Desktop.
Save gardner/3850856 to your computer and use it in GitHub Desktop.
Make your terminal smile when exit code is zero
export PS1="\h: `if [ $? = 0 ]; then echo -e '\[\e[01;32m\]\n\xE2\x98\xBA'; else echo -e '\[\e[01;31m\]\n\xE2\x98\xB9'; fi` \[\e[01;34m\]\[\e[00m\] \W \u$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment