The worst is when you remember doing something before, but don’t remember enough details to be able to effectively search for it.
Although, even then, I’m not going to just mindlessly hit “up”. Last time it happened I fed my command history through grep and removed all the things that I knew the command wasn’t. Just removing “ls” and “cd” from your history cuts the number of commands down by 80% or something.
The worst is when you remember doing something before, but don’t remember enough details to be able to effectively search for it.
Although, even then, I’m not going to just mindlessly hit “up”. Last time it happened I fed my command history through grep and removed all the things that I knew the command wasn’t. Just removing “ls” and “cd” from your history cuts the number of commands down by 80% or something.
Check out the fzf shell bindings. Reverse history search with fuzzy matching is one of the features.
That doesn’t help when you remember what effect the command had but nothing about what the command itself looked like.