3 ms·
Cache: https://webcache.googleusercontent.com/search?q=cache:aJ9SEYtJjfIJ:blog.lerner.co.il/control-r-favorite-unix-shell-command/ https://webcache.googleuserco
by aroch 12y ago
Cache: https://webcache.googleusercontent.com/search?q=cache:aJ9SEYtJjfIJ:blog.lerner.co.il/control-r-favorite-unix-shell-command/ https://webcache.googleusercontent.com/search?q=cache:aJ9SEY...
I prefer how ZSH or FiSH does this, fuzzy matching without the need to remember the command/binary but can match the servername or a variable and no need for C-r
- Mister_Snuggles 12y agoI 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. ;)