Not sure if this is already possible, but I haven’t found a way to do it yet:
There are a lot of times when I’m looking to find a collection of commands I’ve issued around the same time. I don’t have good enough shell hygiene to compose all of my steps into one execution, so usually they’re spread across multiple history entries.
It would be baller to be able to search for something like kubectl <something>
and then be able to expand context around that entry like grep -A # -B #
… Or, at least be able to dive into that point in history w/o losing where it’s at.