Created
September 26, 2013 19:40
-
-
Save wesleybliss/6719458 to your computer and use it in GitHub Desktop.
Prepend smile/frown face to command prompt based on command execution result.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS1="\w \`if [ \$? = 0 ]; then echo -e '\[\e[01;32m\]\n^_^'; else echo -e '\[\e[01;31m\]\n>_<'; fi\` \[\e]0;\w\a\] \[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\\$\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment