How to enable auto completion in Ruby’s IRB

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

If that doesn’t work try bond, http://tagaholic.me/bond/:

   require 'bond'; require 'bond/completion'

Bond not only improves irb’s completion, http://tagaholic.me/2009/07/22/better-irb-completion-with-bond.html, but also offers an easy dsl for making custom autocompletions.

Leave a Comment