John F. Miller John F. Miller - 1 year ago 106
Ruby Question

How to enable auto completion in Ruby's IRB

When I use Merb's built in console, I get tab auto-completion similar to a standard bash prompt. I find this useful and would like to enable it in non-merb IRB sessions. How do I get auto-completion in IRB?

Answer Source

Just drop require 'irb/completion' in your irbrc.

If that doesn't work try bond,

   require 'bond'; require 'bond/completion'

Bond not only improves irb's completion,, but also offers an easy dsl for making custom autocompletions.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download