blob: 15d362a632b422811e6a20b79cdea9dbf8386cec (
plain)
1
2
3
4
5
6
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]))
|