How to enable auto completion in Ruby's IRB

前端 未结 3 455
礼貌的吻别
礼貌的吻别 2021-01-29 23:41

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

3条回答
  •  一个人的身影
    2021-01-30 00:18

    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.

提交回复
热议问题