News for hackers. Stuff that matters.
Re:Control-R, my favorite Unix shell command by nitrogen on Sunday May 18, 2014 @01:30PM (#7763637)
I have history-search-backward and its reverse mapped to page up and page down. A rare few Linux distributions enable them by default, but the rest frequently have a commented example in /etc/inputrc that can be copied to your ~/.inputrc (note that programs using editline instead of readline will need additional configuration).
Re:Control-R, my favorite Unix shell command by gbog on Sunday May 18, 2014 @08:08PM (#7765002)
Why not arrow up? That's what I use and it is very natural.
Re:Control-R, my favorite Unix shell command by hyp0 on Sunday May 18, 2014 @10:47PM (#7765444)
Me too. And not entering anything gives normal arrow up, so there's no loss.

BTW: ^r is a little more powerful: it is /string/ while this one is /^string/

BTW ^r annoyance: you can't type and then hit ^r. You have to hit ^r first. Seems easy to fix...

BTW tip: if you like readline features, consider rlwrap: it wraps its argument (which is your command) in readline. e.g. rlwrap python. Especially nice to wrap your own interactive cmdline tool.

Re:Control-R, my favorite Unix shell command by loevborg on Monday May 19, 2014 @04:43AM (#7766404)
Thanks for the tip on rlwrap, that looks really useful!
Re:Control-R, my favorite Unix shell command by dogem on Monday May 19, 2014 @08:07AM (#7767000)
Because you have to move your hand away from the home row. And that's not what some people, like me, want.