• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

Needless to say, we can't live without irb.
Although it is already incredibly useful,
I had a desire to improve it...

like this:

ss

This is the
irb_rocket
that I've made.
It makes irb into being as follows

  • Result follows blue #=> after your input.
  • It also be colored by Wirble.
  • Output of stderr is colored to red.

INSTALL

You must install
Wirble
and
ruby-terminfo
in advance.
And then, you can install the plugin like this:

pre>>
% sudo gem install irb_rocket --source http://merbi.st
<<--

After that, the last task is append 2 lines below to your ~/.irbrc

ruby>>
require 'rubygems'
require 'irb_rocket'
<<--

Completed!
Now you can use new irb as always.

posted by takiuchi takiuchi on Sun 8 Feb 2009 at 17:15 with 4 comments
elliottcable elliottcable 02/12 08:18
This appears to be incompatible with Ruby 1.9.1 due to ruby-terminfo: http://gist.github.com/62355
Genki Takiuchi Genki Takiuchi 02/13 08:47
Thank you for reporting.

Currently, the ruby-terminfo doesn't work with ruby191.
Please wait for the author's upgrading it.
I too wanted for it to be usable on ruby191 :-)
瀧内元気 瀧内元気 02/13 16:09
Fixed the ruby-terminfo to be compatible with ruby-1.9.1.
(See <http://merbi.st/plugins/21>)

So now you can use irb_rocket with ruby-1.9.1 :-)
瀧内元気 瀧内元気 01/03 17:25
The merbi.st domain has been expired.
So now it is at github and gemcutter.