Skip to content

Instantly share code, notes, and snippets.

@kenjione
Last active December 28, 2015 22:29
Show Gist options
  • Save kenjione/7572202 to your computer and use it in GitHub Desktop.
Save kenjione/7572202 to your computer and use it in GitHub Desktop.
.irbrc
require 'rubygems'
require 'ap'
require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
IRB::Irb.class_eval do
def output_value
ap @context.last_value
end
end
IRB.conf[:PROMPT_MODE] = :SIMPLE
require 'irb/completion'
if defined? Bundler
Gem.post_reset_hooks.reject! { |hook| hook.source_location.first =~ %r{/bundler/} }
Gem::Specification.reset
# load 'rubygems/custom_require.rb'
end
if defined? Rails
begin
require 'hirb'
Hirb.enable
rescue LoadError
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment