It's common to have a custom PROMPT_COMMAND which reads the exit code. This stops undistract-me from interfering with the exit code produced by the program
example of a prompt command reading the exit code:
PROMPT_COMMAND=__prompt_command
__prompt_command() {
local exit="$?" # This needs to be first
# set PS1 here
}
source /usr/share/undistract-me/long-running.bash
notify_when_long_running_commands_finish_install
It's common to have a custom PROMPT_COMMAND which reads the exit code. This stops undistract-me from interfering with the exit code produced by the program
example of a prompt command reading the exit code: