Created
December 19, 2012 03:40
-
-
Save ktkaushik/4334208 to your computer and use it in GitHub Desktop.
My .irbrc file on mac
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
| require 'irb/completion' | |
| require "irb/ext/save-history" | |
| IRB.conf[:PROMPT_MODE] = :SIMPLE | |
| IRB.conf[:SAVE_HISTORY] = 1000 | |
| IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history" | |
| # Break out of the Bundler jail | |
| # from https://github.com/ConradIrwin/pry-debundle/blob/master/lib/pry-debundle.rb | |
| if defined? Bundler | |
| Gem.post_reset_hooks.reject! { |hook| hook.source_location.first =~ %r{/bundler/} } | |
| Gem::Specification.reset | |
| load 'rubygems/custom_require.rb' | |
| end | |
| # Use Wirb, Hirb, Clipboard and awesome_print by default ! | |
| if defined? Rails | |
| begin | |
| require 'wirb' | |
| Wirb.start | |
| require 'hirb' | |
| Hirb.enable | |
| require 'awesome_print' | |
| require 'clipboard' | |
| rescue LoadError | |
| Rails.logger.error "Unable to load. Check your ~/.irbrc file again !" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment