changeset 119:b2d9ac793cb0

Have irb save history.
author Augie Fackler <durin42@gmail.com>
date Thu, 02 Jul 2009 11:27:31 -0500
parents e5f02ede61e3
children e83373ab1581
files .irbrc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.irbrc
+++ b/.irbrc
@@ -5,3 +5,5 @@ IRB.conf[:LOAD_MODULES] = []  unless IRB
 unless IRB.conf[:LOAD_MODULES].include?('irb/completion')
   IRB.conf[:LOAD_MODULES] << 'irb/completion'
 end
+IRB.conf[:SAVE_HISTORY] = 1000
+IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"