Created
February 14, 2018 16:08
-
-
Save joeybeninghove/68a7dfdbce9f12efde36551868008691 to your computer and use it in GitHub Desktop.
Retain history of commands for IRB and Rails console sessions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'irb/ext/save-history' | |
IRB.conf[:SAVE_HISTORY] = 100 | |
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment