Imagine that I enter these commands in Konsole (Manjaro KDE terminal):
python3 script.py
clear
clear
Normally when I hit arrow UP key, I am able to scroll through recent commands: If I hit arrow UP key three times I should have these commands
clear
clear
python3 script.py
Is there a way to avoid having similar commands when hitting arrow UP key?
What I want here is to have
clear
python3 script.py
bash
), not a function of the terminal (konsole
). – Stewart Nov 29 '20 at 16:19bash
(in the terminal), then yes. Look uphistory
. There is an option to remove adjacent duplicates. – ctrl-alt-delor Nov 29 '20 at 17:30