Skip to content

Instantly share code, notes, and snippets.

@danlucraft
Created September 9, 2008 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danlucraft/9680 to your computer and use it in GitHub Desktop.
Save danlucraft/9680 to your computer and use it in GitHub Desktop.
# put this into ~/.irbrc
require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
IRB.conf[:EVAL_HISTORY] = 1000
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = File::expand_path("~/.irbhistory")
# if you get readline missing errors you will need to install readline for your OS, then
# recompile Ruby with readline enabled in the ruby_src/ext/Setup file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment