Use prompt that include the exit code of the last command so that `echo $?` does not have to be executed after each command. ```bash export PS1="bash[\$?]# " ```
Use prompt that include the exit code of the last command so that
echo $?does not have to be executedafter each command.