This question already has an answer here:
I would like to ask if it is possible to set up in bash so that each command is executed from of the top of terminal window. In other words if it is possible to execute
clear before each command.
Also I wonder if it is possible to do this without using
preexec() hook since I have history disabled anyway in bash.