Hacker News new | ask | show | jobs
by fergie 447 days ago
100% agree. FWIW I use ctrl-r all day every day in emacs and also in the shell and its... fine.

In my opinion, the one thing that would make a difference is a longer and broader history.

1 comments

It is possible to change the history length in most shells including bash, when I googled it I found this baeldung.com article which says it can be set to unlimited using this (or use a big number if you'd prefer!):

export HISTSIZE=-1; export HISTFILESIZE=-1

Also, one can bind the 'up' key to do the search action too, which I think is pretty convenient, my bindings are for zsh but I think it should also work in bash:

bindkey '^[[5~' up-line-or-history

bindkey '^[[6~' down-line-or-history