Skip to content

Instantly share code, notes, and snippets.

@Nucc
Created February 4, 2015 15:40
Show Gist options
  • Save Nucc/957703e3e77bfeeb3857 to your computer and use it in GitHub Desktop.
Save Nucc/957703e3e77bfeeb3857 to your computer and use it in GitHub Desktop.
Turn on IRB history
# 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