1. 1 Chris

    You can see my .irbrc at http://code.tie-rack.org/cms/irbrc.

    Mine is wrapped in an unless condition to make sure that Rails’ script/server isn’t running (up until Rails 2.0, I think, script/server would load .irbrc at the beginning of every request, which could cause issues). I share this across multiple machines, some of which still use Rails 1.2, so that’s still necessary.

    I’ve also (at the end there) got some gems that load only if I’m currently using Ruby 1.8.6 and not JRuby.

    And I use a little IRB.conf[:IRB_RC] trick to get one gem to load after everything else (including Rails) so that it doesn’t mess up some of Rails’ magic.

  2. 2 Matt Williams

    Thanks for sharing! There’s a lot of neat ideas there. I plan to incorporate some of them.

Leave a Reply