Skip to content

Instantly share code, notes, and snippets.

@pgib
Created August 27, 2013 21:42
Show Gist options
  • Save pgib/6359557 to your computer and use it in GitHub Desktop.
Save pgib/6359557 to your computer and use it in GitHub Desktop.
OMG WHY HAVE I NOT ALWAYS HAD THIS??
IRB.conf[:USE_READLINE] = true
# awesome print
begin
require 'awesome_print'
AwesomePrint.irb!
rescue LoadError => err
warn "Couldn't load awesome_print: #{err}"
end
# irb history
IRB.conf[:EVAL_HISTORY] = 1000
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = File::expand_path("~/.irbhistory")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment