logoalt Hacker News

bwhaleylast Thursday at 12:57 PM8 repliesview on HN

Once you start using CTRL+r, you may find that you never reach for up arrow again.


Replies

pavel_lishinlast Thursday at 1:59 PM

I'm familiar with ctrl-r, but I still very much like the up-arrow behavior described by that commenter.

show 2 replies
Zetaphorlast Thursday at 11:35 PM

Atuin[1] feels like the best of both worlds to me.

[1] https://github.com/atuinsh/atuin

show 1 reply
BeetleBlast Thursday at 3:07 PM

There is a difference, I believe. Doesn't Ctrl+r do a substring search instead?

show 1 reply
kuschkufanlast Thursday at 1:10 PM

And once you want to one-up this look into fzf.

show 1 reply
twelvedogslast Thursday at 11:17 PM

If you use multiple terminals it kinda sucks unless you do export PROMPT_COMMAND='history -a' in your.bashrc or something cause only the last closed terminal saves to history

soraminazukilast Thursday at 5:34 PM

Prefix search is faster for the majority of cases. CTRL-r / FZF is useful for the remaining ones.

noisy_boylast Thursday at 3:38 PM

export EDITOR=vi and then hitting Esc puts you into vi mode; k, j to move up/down through history or pressing / to search etc including using regex is all available.

antonvsyesterday at 5:50 AM

Ctrl-r can’t replace prefix search.