Created
January 18, 2013 18:09
-
-
Save reejosamuel/4566738 to your computer and use it in GitHub Desktop.
.irbrc with some personal preferences
This file contains hidden or 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
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