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.
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.
It's a very useful trick to keep up your sleeve!