require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
# requires Ruby 1.8.4
require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:EVAL_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = "#{ENV['USERPROFILE']}/.irb-save-history"
An alternate approach is to create an environment variable called IRBRC and set it to the full path of the .irbrc file.