Skip to content

Instantly share code, notes, and snippets.

@ktkaushik
Created December 19, 2012 03:40
Show Gist options
  • Select an option

  • Save ktkaushik/4334208 to your computer and use it in GitHub Desktop.

Select an option

Save ktkaushik/4334208 to your computer and use it in GitHub Desktop.
My .irbrc file on mac
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