summaryrefslogtreecommitdiff
path: root/.irbrc
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-08-14 14:32:10 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-08-14 14:32:10 -0400
commitbcb74a7b9567b8ded2f816b49b51f7e8139a2cfb (patch)
treecdd42b9645dd3db832cbebbfe5c51ecd5cd8ec1d /.irbrc
parentf352d152b3ecefb8ae8acc95eaa73735f95ac938 (diff)
.irbrc: save the history
Diffstat (limited to '.irbrc')
-rw-r--r--.irbrc3
1 files changed, 3 insertions, 0 deletions
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