Use atuin and browse your shell history
No matter which shell you use on Linux, macOS or even Windows, with atuin.sh you will never again get lost in the endless universe of commands that all of us who use the shell type every day.
Example:

And that is just one of the features atuin gives you. It has many more, including syncing your history across machines, which lets you see a command that was run on another machine, all encrypted, of course.
More information and examples on the project's official website: https://atuin.sh