News for hackers. Stuff that matters.
Re:Control-R, my favorite Unix shell command by JetSpiegel on Sunday May 18, 2014 @12:00PM (#7763381)
Better yet, put this on ~/.inputrc

   "\e[A": history-search-backward
   "\e[B": history-search-forward
to search backwards and forwards with the up and down arrow keys.
Re:Control-R, my favorite Unix shell command by gemlog on Sunday May 18, 2014 @12:32PM (#7763457)
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