RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

What are the IRB extensions that you use on a daily basis?

For DietRB, I’m looking for input from users on what IRB extensions they use on a daily basis, so I can start investigating what is really used and what I should support.

Leave comments here, or reply on twitter. And while you’re at it, please retweet :)

Comments

Looksee, Wirble, Hirb and copy&paste support.

I’ve modified my IRB quite extensively: map_by_method what_methods prettyprint (pp) awesome_print net-http-spy the usual simple prompt, tab completion, auto indent wirble “clear” method to clear the screen fast load/reload shortcuts sketches

You can find my irbrc over at github if you want to take a look.

is use Ben Bleything’s irb history hack see lighting talks rubyconf 2006

Wirble and of course irb/completion and history.

I try not to get too crazy about it b/c the more extensions you have the less you have a true Ruby slate to work with.

Hmm.. which makes me think a command-line option to turn off most of it would be cool. Perhaps even two or three levels.

“Hmm.. which makes me think a command-line option to turn off most of it would be cool. Perhaps even two or three levels.”

irb -f will suppress loading of your ~/.irbrc

Check out the next version of utility_belt, flyrb: http://github.com/jtrupiano/flyrb

Looksee, Wirble, Hirb. Looksee is my favorite of the bunch.

Thanks for the good feedback and .irbrc’s!

I’ve compiled a list of extensions that multiple people use, and also broke the IRB specific ones into, what I think, are the individual parts of the extensions:

IRB specific
  • Wirble (http://github.com/blackwinter/wirble):
    • some IRB settings, indent etc
    • history (saved)
    • color
    • shortcuts
  • utility_belt (http://github.com/jtrupiano/flyrb):
    • some IRB settings, indent etc
    • history (saved)
    • utils / shortcuts
    • wirble color schemes
Not IRB specific
  • hirb:
    • formatted output
  • awesome_print:
    • formatted output
  • Looksee
    • formatted output

The last three not IRB specific ones should be trivial, the IRB specific ones, especially Wirble and its colorize functionality will be a bit harder.

I’ve concluded a color option should ship with IRB, so I’m gonna take a better look at the Wirble code and possibly integrate it. The same goes for a good default history manager and possibly copy-paste support.

I’ll report back when there’s any progress.

Hmm, for better formatting of the response see https://gist.github.com/c96cde612dc52207fe76

Just released 0.4.0 which adds history management and color support. The color code is based on Wirble, so schemes should still work.

To use it you will have to adjust your irbrc…

If people have more color schemes, I’d love to include some more!!

And the link to 0.4.0 http://rubygems.org/gems/dietrb

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in