Best bash prompt. Ever.
I have the best bash prompt ever. It took a lot of hacking and googling, but here she is:
Notice that the smiley face and text colors change depending on the exit code of the last run command (red = failed, green = happy). This is handy, for example, after a big long build that has error messages buried in it, and the last line of output just isn’t that useful.
To make your prompt awesome, put this in your .bashrc and enjoy: