you can get a lot of the way there with Control+R reverse history search (mentioned in the article) – and it’s interactive. With fzf
you can even get fuzzy history searching (the first search result has a video). atuin
puts history into a proper db, optional syncs across hosts, and, like fzf, enhances control+r
I have a bash function in
fuzzy_arg
that I bind to Alt-a to uses fzf for interactively inserting arguments from previous commands. It’s Ctrl-r for Alt-. – I’ve found it super useful for essentially inserting partial commands (single arguments) from the history