RubyLakeIrbCompletion

From Wiki

Jump to: navigation, search

This is the support page for Eric Lake's Enabling Tab Completion in IRB video set. Please feel free to dip-in and extend this information.


This snippets page for .irbc tab completion might be helpful.

Eric's .irbrc

This is just a simple example of what can be done with the irbrc file.

require 'irb/completion'
IRB.conf[:PROMPT_MODE] = :SIMPLE

I found on http://www.rubyweeklynews.org/20051023 that if you use a Mac then you should set the .irbrc file to read:

require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
Personal tools