From bcb74a7b9567b8ded2f816b49b51f7e8139a2cfb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 14 Aug 2013 14:32:10 -0400 Subject: .irbrc: save the history --- .irbrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.irbrc b/.irbrc index 7596d96..0d2f5b4 100644 --- a/.irbrc +++ b/.irbrc @@ -1 +1,4 @@ require 'rubygems' unless defined? Gem # only needed in 1.8 +require 'irb/ext/save-history' +IRB.conf[:SAVE_HISTORY] = 1000 +IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history" \ No newline at end of file -- cgit v1.2.3