Err the Blog Atom Feed Icon
Err the Blog
Rubyisms and Railities
  • “Simpler irb”
    – Chris on July 31, 2006

    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, about 22 hours 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.
    Sorry, no more comments :(
This is Err, the weblog of PJ Hyett and Chris Wanstrath.
All original content copyright ©2006-2008 the aforementioned.