Modern day hipsters “discovering” something that DOS users did 30 years ago. LOL
You can set return codes in DOS?
I use a variant similar to what shadowace posted...
VM:~/CHANGES :) echo $PS1
VM:\w `if [ $? = 0 ]; then echo :\\); else echo :\\(; fi`
VM:~/CHANGES :)