I would like to clear my terminal upon hitting submitting an empty command. In other words, I would like to call
clear when I hit Enter on empty line. Is that possible?
I understand that is not how the terminal works, but there might be a nice hack such as binding the Enter key and checking terminal or something.