Err the Blog Atom Feed Icon
Err the Blog
Rubyisms and Railities
  • “Simpler irb”
    – Chris on January 08, 2007

    Advertisement

    Aren’t you sick of that ugly irb prompt? Too much information.

    $ irb
    irb(main):001:0> "i dont care how deeply nested i yam".nil?   
    => false
    

    Check it. Stick this in your .irbrc:

    IRB.conf[:PROMPT_MODE] = :SIMPLE
    

    Now we get a prompt which is, well, simple:

    $ irb
    >> !!nil
    => false
    

    Less noise.

  • John Nunemaker, 5 months later:

    Nice tip. I added it to RailsTips.org.

  • Anonymous, 2 months later:

    Rails already comes set like this? Why does it need to be added to RailsTips?

  • Two people have commented.
    Chime in.



    Textile is permitted.

Projects

  • Cheat! Sheets
  • Subtlety: RSSin' Your SVN
  • cache_fu
  • acts_as_textiled
  • mofo [microformat parsing]
  • require 'errtheblog'

Information

  • Dynamite! — The Err Free Weblog
  • Err Free: Ruby Development & Consulting
  • Err on GitHub
  • Err on Twitter
  • Report Err Plugin Bugs (Lighthouse Tracker)
  • Contact
This is Err, the weblog of PJ Hyett and Chris Wanstrath.
All original content copyright ©2006-2008 the aforementioned.