Created
May 31, 2012 21:11
-
-
Save jwaldrip/2846327 to your computer and use it in GitHub Desktop.
Keep your irb console history, save this to your home dir.
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/completion' | |
require 'irb/ext/save-history' | |
ARGV.concat [ "--readline", | |
"--prompt-mode", | |
"simple" ] | |
# 1500 entries in the list | |
IRB.conf[:SAVE_HISTORY] = 1500 | |
# Store results in home directory with specified file name | |
IRB.conf[:HISTORY_FILE] = ".irb-history" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment