Re:Control-R, my favorite Unix shell command
by JetSpiegel on Sunday May 18, 2014 @12:00PM
(#7763381)
Better yet, put this on ~/.inputrc
to search backwards and forwards with the up and down arrow keys.
[ Parent
| on HN ]
Another way to take advantage of ctrl+r is to add a comment at the end of the line when you have very similar commands. e.g.
ssh [email protected] #servername
ffmpeg -some -long -incantation #vid2mp3
It's better than an alias or function in your rc file as you can easily edit to change some args