Simplicity is a form of art...

Showing return code in PS1
by Sven Vermeulen, post on Sun 31 August 2014

If you do daily management on Unix/Linux systems, then checking the return code of a command is something you'll do often. If you do SELinux development, you might not even notice that a command has failed without checking its return code, as policies might prevent the application from showing …