wribleを使うとirbのプロンプトがシンプルすぎる件

wirbleって便利なんだけどプロンプトがRailsのscript/console並にしょぼくなる。


Wrible使用前

$ irb
irb(main):001:0>


Wirble使用後

$ irb
>> 

ちょっとシンプルすぎるー。やっぱ行番号ほしー。

/usr/lib/ruby/gems/1.8/gems/wirble-0.1.2/README

読めと

Configuring Wirble
==================
You can pass a hash of options to Wirble.init in order to adjust the
behavior of Wirble. Here's a full list of options and a brief
description of each one:

* :skip_prompt

Down't load the simple prompt. Shouldn't ever be necessary, but
I've included it for the sake of completeness. Wirble's default
behavior is to the prompt setting before making any changes. If the
prompt is anything other than :DEFAULT, Wirble won't override it.

と、言う事で。.irbrcの中身を

Wirble.init(:skip_prompt => :DEFAULT)

にするといいらしい。



色の付け方も設定できるっぽいねー。

Color Settings
==============
You can set colors in Wirble by passing a hash of color options via
Wirble.init (see the :color option for Wirble.init above), or by setting
Wirble::Colorize.color directly. For example: