Skip to content

Instantly share code, notes, and snippets.

@eastmedia
Created November 9, 2010 21:14
Show Gist options
  • Save eastmedia/669830 to your computer and use it in GitHub Desktop.
Save eastmedia/669830 to your computer and use it in GitHub Desktop.
require 'pp'
# add color with wirble. See http://pablotron.org/software/wirble/
begin
require 'wirble'
Wirble.init
Wirble.colorize
rescue LoadError => err
warn "Couldn't load Wirble: #{err}"
end
# try to indent code
IRB.conf[:AUTO_INDENT]=true
require 'irb/completion'
require 'irb/ext/save-history'
ARGV.concat [
"--readline",
"--prompt-mode",
"simple"
]
# 25 entries in the list
IRB.conf[:SAVE_HISTORY] = 25
IRB.conf[:PROMPT_MODE] = :SIMPLE
# Store results in home directory with specified file name
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment