Store Rails Command History After Exit Oct 2nd, 2017 • Permalink Create or edit your ~/.irbrc file to include: require 'irb/ext/save-history' IRB.conf[:SAVE_HISTORY] = 2000 IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history" Original link