John F. Miller John F. Miller - 3 months ago 8x
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?


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.