Reverse-search in IRB.
You can reverse-search through previously entered statements in IRB by pressing Ctrl-R:
~
❯ irb
2.1.6 :001 ❯ def something_complicated(x,y); x + y; end
=❯ :something_complicated
2.1.6 :002 ❯ quit
~ 10s
❯ irb
(reverse-i-search)`compli': def something_complicated(x,y); x + y; end
Happy hacking!
Written on March 9, 2016 by ryandevilla