Skip to content

Instantly share code, notes, and snippets.

@jwaldrip
Created May 31, 2012 21:11
Show Gist options
  • Save jwaldrip/2846327 to your computer and use it in GitHub Desktop.
Save jwaldrip/2846327 to your computer and use it in GitHub Desktop.
Keep your irb console history, save this to your home dir.
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