When using bash, I want to append a break or something else like a red line to the command output, so that I can clearly distinguish multiple command results.
By default, every bash output has no gap between each other:
After configuration, every bash output has a red line between each other:
The latter is much more clear than the former.
To add a red line between outputs, edit ~/.bashrc
and add the following line:
PROMPT_COMMAND='echo "$(tput setaf 1)--------------------$(tput sgr0)"'
If a simple break is enough for you, it's easier. Edit ~/.bashrc
and add the following line:
PROMPT_COMMAND='echo'