comparison .irbrc @ 119:b2d9ac793cb0

Have irb save history.
author Augie Fackler <durin42@gmail.com>
date Thu, 02 Jul 2009 11:27:31 -0500
parents 886502b61509
children
comparison
equal deleted inserted replaced
118:e5f02ede61e3 119:b2d9ac793cb0
3 IRB.conf[:USE_READLINE] = true 3 IRB.conf[:USE_READLINE] = true
4 IRB.conf[:LOAD_MODULES] = [] unless IRB.conf.key?(:LOAD_MODULES) 4 IRB.conf[:LOAD_MODULES] = [] unless IRB.conf.key?(:LOAD_MODULES)
5 unless IRB.conf[:LOAD_MODULES].include?('irb/completion') 5 unless IRB.conf[:LOAD_MODULES].include?('irb/completion')
6 IRB.conf[:LOAD_MODULES] << 'irb/completion' 6 IRB.conf[:LOAD_MODULES] << 'irb/completion'
7 end 7 end
8 IRB.conf[:SAVE_HISTORY] = 1000
9 IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"