Duplicates are already turned off, but that's not enough (I feel like I have to enter commands too often).
Assume I have a capacity of 2000 entries of by
bash history and a command which I used very often (
n times) in the past but not recently and I want to use again now. Assume this command is at the oldest position in the history and would be evicted after the next non-duplicate command execution. I would like this command to be preserved and the oldest command (with usage count <
n) to be evicted from history instead.
One might argue that this makes the
bash history not a (linear) history anymore. I agree, but don't care since I want easy access to my favorite commands (being automatically collected).
bash 4.3.42 on Ubuntu 15.10.