Hacker News new | ask | show | jobs
by lukaszkorecki 2226 days ago
C-r for interactive history search
1 comments

Not just that.

Add this to you inputrc:

"\e[A": history-search-backward

"\e[B": history-search-forward

Now up and down arrows will search your history with whatever you already have typed at the prompt. Re-running a command often? Probably just have to type its first letter and hit up arrow once or twice.

I like fzf for command history search. Ctrl-r, then fuzzy search the command, arrow up and down. Nirvana
fzf is game changing. Having have to guess exactly with Ctrl-R is a thing of the past.
This is AMAZING. Thanks so much!

(fyi, for others: you need not use ctrl-r, just type and press up and down)