added error code of previous command to bash prompt, credit to Cal