News for hackers. Stuff that matters.
Re:Control-R, my favorite Unix shell command by Mister_Snuggles on Sunday May 18, 2014 @11:45AM (#7763341)
Control-R will work with anything that uses readline and keeps history. In addition to working in the Unix shell, it also works in psql (the PostgreSQL tool) and the Python REPL.

It's a very useful trick to keep up your sleeve!

Re:Control-R, my favorite Unix shell command by ninkendo on Sunday May 18, 2014 @12:43PM (#7763489)
Tip for rbenv users on OSX... install readline with homebrew and install your ruby versions with:

    SKIP_PRECOMPILED_RUBIES=1 CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline)" rbenv install (version)
to get readline working for irb/pry (for ctrl+r search, etc.)
Re:Control-R, my favorite Unix shell command by protopete on Sunday May 18, 2014 @08:17PM (#7765030)
You can also use "rlwrap" with any program to enable readline features.
Re:Control-R, my favorite Unix shell command by encoderer on Sunday May 18, 2014 @12:34PM (#7763464)
Python REPL?

Is there something I need to do to enable that?

Re:Control-R, my favorite Unix shell command by Mister_Snuggles on Sunday May 18, 2014 @01:11PM (#7763572)
The Python REPL that I'm using has readline enabled. If you don't have it you may need to rebulid it and enable readline when you run configure.
Re:Control-R, my favorite Unix shell command by Bootvis on Sunday May 18, 2014 @12:42PM (#7763485)
Type

    python
in your shell?
Re:Control-R, my favorite Unix shell command by maxerickson on Sunday May 18, 2014 @12:53PM (#7763529)
Note that a given python may be compiled without readline or with a readline replacement.
Re:Control-R, my favorite Unix shell command by encoderer on Sunday May 18, 2014 @09:58PM (#7765280)
Yeah, the one on OSX isn't compiled w/ readline. But I tried it on a ubuntu host and it works.