Again, this is just another little reminder for myself since I keep forgetting how to do it. Anyhow…
If you don’t have tab-completion and syntax coloring in your IRB sessions, you’re missing out! But thanks to both some kick-ass terminals and Ruby itself, you can get both in just a few simple steps.
As easy as 1, 2, done!
Assuming you’ve already got Ruby and RubyGems installed, fire up a terminal window and install the Wirble gem:
Next, open (or create it if it doesn’t exist) the .irbrc file in your home folder, typically located at ~/.irbrc in Linux, OSX, and Cygwin environments, and add the following:
require 'rubygems'
require 'wirble'
Wirble.init
Wirble.colorize
Restart your terminal, fire up an IRB session, and enjoy!
Technorati Tags:
ruby,
irb