Entries filed under Ruby

Tab completion and syntax coloring in irb using Wirble

I generally code in python and am used to the default features of the ipython interactive python shell. One of the features that I use a lot is tab completion. It helps me locate method names and also just do exploration inside modules that are new to me.

Wirble is a gem for ruby that enhances the irb interactive ruby shell to have tab completion, syntax coloring, and a few other irb tweaks that I haven’t looked in to yet.

Its pretty easy to install wirble on most unix systems with ruby gem support installed:

gem install wirble

Then, add the following lines to your ~/.irbrc

require 'rubygems'
require 'wirble'
require 'irb/completion'

Next time you start up irb save typing using tab completion and relax your eyes using the syntax coloring.