DevHeads.net

Didi you know? - Wirble Reverse

Did you know Wirble is about a 1000x more helpful if you set
`:history_uniq` to `:reverse`:

# ~/.irbrc
require 'wirble'
Wirble.init(:history_uniq=>:reverse)
Wirble.colorize

Now what you type will remain closer to where you're at!

Why isn't :reverse the default? I have no idea. I wish it were. But such is
the nature of legacy decisions some times.

Enjoy.

Comments

Re: Didi you know? - Wirble Reverse

By Jens Wille at 12/13/2011 - 04:11

Intransition [2011-12-13 05:02]:
<https://github.com/blackwinter/brice/blob/master/lib/brice/history.rb#L39-40>

however, note that brice, by default, does more than wirble - and
differently. to more or less mimic wirble's behaviour you'd have to
do something like this:

---- [~/.irbrc] ----
require 'brice'
Brice.init { |config| config.only(:history, :colours) }
which isn't much less than what you had to do for wirble to change
its :history_uniq option.

cheers
jens