summaryrefslogtreecommitdiff
path: root/.config/irbrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/irbrc')
-rw-r--r--.config/irbrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/irbrc b/.config/irbrc
index cda5ada..15d362a 100644
--- a/.config/irbrc
+++ b/.config/irbrc
@@ -1,5 +1,7 @@
# -*- mode: Ruby -*-
require 'rubygems' unless defined? Gem # only needed in 1.8
require 'irb/ext/save-history'
+require 'fileutils'
IRB.conf[:SAVE_HISTORY] = 5000
IRB.conf[:HISTORY_FILE] = "#{ENV['XDG_CACHE_HOME']}/irb/history"
+FileUtils.mkdir_p(File.dirname(IRB.conf[:HISTORY_FILE]))