Look, I'm lazy, okay? - Lemmy.world

Ctrl+R

Then type any part of the command (filename, search string, etc)

Ctrl+R again to cycle through the matches.

(Best feature in bash)

Or history | grep ‘command’
Can’t just hit enter to run the one you want then, though.