Clean up error code printing

Shell now only prints the errorcode when the previous command returns a
non-zero status

Command syntax was inspired by / copied from:
    https://github.com/slashbeast/things/blob/master/configs/DOTzshrc