IRB history and completion
Posted by Daniel Wed, 08 Aug 2007 14:19:00 GMT
Who knew? Why & Others did apparently.require 'irb/completion'
require 'irb/ext/save-history'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
IRB.conf[:SAVE_HISTORY] = 200
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
Give it a shot by adding those lines to your .irbrc file (home directory).
Try typing Date:: and hitting tab twice...
Note that this will break the existing filesystem completion, so e.g. File.open('..tab..> will no longer work.
