Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Created May 29, 2009 22:09
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 BanzaiMan/120241 to your computer and use it in GitHub Desktop.
Save BanzaiMan/120241 to your computer and use it in GitHub Desktop.
# some hints from http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/
require 'irb/completion'
require 'pp'
require 'rubygems'
require 'wirble'
require 'map_by_method'
require 'what_methods'
Wirble.init
Wirble.colorize
IRB.conf[:AUTO_INDENT] = true
IRB.conf[:PROMPT][:CUSTOM] = {
:PROMPT_C => "%N(%m):%03n:%i* ",
:PROMPT_I => "%N(%m):%03n:%i> ",
:PROMPT_N => "%N(%m):%03n:%i> ",
:PROMPT_S => "%N(%m):%03n:%i%l ",
:RETURN => "=> %s\n"
}
IRB.conf[:PROMPT_MODE] = :CUSTOM
if (RUBY_PLATFORM =~ /java/)
IRB.conf[:AP_NAME]="jirb"
IRB.conf[:IRB_NAME]="jirb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment