Created
March 15, 2011 09:44
-
-
Save hmans/870511 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "ap" | |
unless IRB.version.include?('DietRB') | |
IRB::Irb.class_eval do | |
def output_value | |
ap @context.last_value | |
end | |
end | |
else # MacRuby | |
IRB.formatter = Class.new(IRB::Formatter) do | |
def inspect_object(object) | |
object.ai | |
end | |
end.new | |
end | |
require "wirble" | |
IRB.conf[:AUTO_INDENT] = true | |
IRB.conf[:USE_READLINE] = true | |
IRB.conf[:LOAD_MODULES] = [] unless IRB.conf.key?(:LOAD_MODULES) | |
unless IRB.conf[:LOAD_MODULES].include?("irb/completion") | |
IRB.conf[:LOAD_MODULES] << "irb/completion" | |
end | |
Wirble.init | |
Wirble.colorize | |
require 'bundler/setup' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment