What's in your $PS1? Lately I've been adding $? (exit status) to it and I can't believe I've lived without this for so long. Turns out there's plenty of times when something seems to exit cleanly but in reality $? isn't zero. It also turns out that this is usually just fine. But not always, such as with wine.
So, do ya'll have any must-haves in your $PS1? Obviously I'm not asking about the default username:host/path# that most PS1's are set to. That's all perfectly useful, I nestled $? between the user and the hostname, and have room for something numeric between the host and the path.
My full PS1 including colors is:
\[\033[38;5;5m\]\u\[\]\[\033[38;5;12m\]$?\[\]\[\033[38;5;5m\]\h\[\]\[\033[38;5;15m\]:\[\]\[\033[38;5;12m\]\w\[\]\[\033[38;5;15m\]\$\[\]