A couple of weeks ago Ben asked me some kind of question about something or other I was working on at the time and I dropped into irb to illustrate whatever it was, everything was going fine until I hit up and he stopped me.
“Sean. You have history?? How do you have a history in irb??”
I am a compulsive customizer. Of course I have history in my irb.
Sure, there are all kinds of enhancements for irb, but having come from the linux world into this one-button wasteland of mac development there are just two things I always finding myself doing: hitting up and hitting tab.
The fruits of my search revolve around the wirble gem, which you're going to need to install like so:
Fri Jul 25> sudo gem install wirble
Why exactly irb doesn’t ship with history or tab completion is a mystery to me, all you need to do to get them is to put the following in your ~/.irbrc :
- require 'rubygems'
- require 'wirble'
- Wirble.init
- Wirble.colorize
Now if only I could figure out how to get middle-click paste back.
Note: this will also enable colorizing
References
Wirble
Bummer ... doesn't do so hot in windows.