Created
February 4, 2015 15:40
-
-
Save Nucc/957703e3e77bfeeb3857 to your computer and use it in GitHub Desktop.
Turn on IRB history
This file contains 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
# Paste the following code to your ~/.irbrc | |
require 'irb/completion' | |
require 'irb/ext/save-history' | |
ARGV.concat [ "--readline", "--prompt-mode", "simple" ] | |
IRB.conf[:SAVE_HISTORY] = 100 | |
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment