Hacker News new | past | comments | ask | show | jobs | submit login

I think the Control-R that readline provides just does string matching on the history. I can do Control-R ssh to find the last ssh command, or I can do Control-R blah to find the last time I used that word anywhere in a command line.

I've got a long ssh command that I use to connect to a server and set up some tunnels and I always enter it by doing Control-R and looking for part of the server's name. If it ever falls of the end of my history I'm in trouble.




Control-R with fuzzy searching never seemed to work as well as I wanted to.

Also, you should setup some aliases :)



I definitely should.

Control-R is convenient enough that there's little incentive to do things right. This says more about me than about Control-R though. ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: