Hacker News new | ask | show | jobs
by TRiG_Ireland 1029 days ago

    $ cat ~/.inputrc 
    "\e[A": history-search-backward
    "\e[B": history-search-forward
This means that I can type the first couple of letters of a command, and then use the up and down arrow keys to cycle through history to search the rest of it. It makes life simpler for me, and confuses me only on the occasions when I've used `git stash`, so `git status` doesn't appear when I expect it to.
1 comments

fish shell does this by default, and also autocompletes commands from your history. I highly recommend it.