irb command history searching

Just another little thing I love about ruby and the way it follows the Principle of Least Surprise: command history searching in irb with ctrl-R.


[aurora:~/work/scrumninja/trunk] dfl% irb
(reverse-i-search)`find': Project.find(1).stories.each(&:destroy)

I <3 Ruby! :)

1 Response to “irb command history searching”

  1. Akhil Bansal Says:

    Great! I didn't know that it also work for irb, I thought it only works for linux shells.

    Thanks for sharing it

Leave a Reply