Skip to content

Instantly share code, notes, and snippets.

@reejosamuel
Created January 18, 2013 18:09
Show Gist options
  • Save reejosamuel/4566738 to your computer and use it in GitHub Desktop.
Save reejosamuel/4566738 to your computer and use it in GitHub Desktop.
.irbrc with some personal preferences
IRB.conf[:PROMPT_MODE] = :SIMPLE
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
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
puts "Hirb Enabled"
rescue LoadError
end
begin
require 'methodfinder'
puts "Methods finder loaded"
rescue LoadError
end
# begin
# require 'wirb'
# Wirb.start
# puts "Wirb Enabled"
# rescue LoadError
# end
end
def clear
system 'clear'
end
def interesting_methods
(self.methods - Object.instance_methods).sort
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment