Fix IRB history

Bo Jeanes 2013-03-31 16:03:20 -05:00
parent 1d72b1f1cf
commit e903c13fe9
1 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,14 @@ rescue LoadError
$stderr.puts "Please install 'irbtools' or add it to your Gemfile"
end
require 'irb/ext/save-history'
require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
class Object
# Return a list of methods defined locally for a particular object. Useful
# for seeing what it does whilst losing all the guff that's implemented