3 ms·
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
by Mister_Snuggles 12y ago
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.
- aroch 12y agoControl-R with fuzzy searching never seemed to work as well as I wanted to. Also, you should setup some aliases :)
- nanofortnight 12y agoOr ssh host shortnames! http://davidwinter.me/articles/2010/08/22/setting-up-ssh-host-shortnames/ http://davidwinter.me/articles/2010/08/22/setting-up-ssh-hos...
- Mister_Snuggles 12y agoI 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. ;)