Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

> they're basically using emacs controls

But not well implemented! You're supposed to be able to edit your search string, and I've never found a way.



view as:

Huh? Backspace works the same for me in Bash C-r as it does in Emacs C-r.

It never does anywhere for me. Good to know it's supposed to, though; maybe I've got something mapped weird, or the versions of the shell I'm using are old enough to be unwelcoming in this way, or I don't know what, but knowing it's not by design means there's a fix to be found for it. Thanks!

You should try hstr (https://github.com/dvorka/hstr). It replaces CTRL-R with a full page interactive history search that really works.

Demo GIF here: https://unix.stackexchange.com/a/375914


If you use either vim or emacs, there's something to be said about using that knowledge for your command line history.

hstr has a vi mode.

Legal | privacy