Skip to content

Instantly share code, notes, and snippets.

@mohnish
Created February 29, 2016 21:23
Show Gist options
  • Save mohnish/18d046d5f260564fc9e1 to your computer and use it in GitHub Desktop.
Save mohnish/18d046d5f260564fc9e1 to your computer and use it in GitHub Desktop.
awesome .irbrc
require 'rubygems'
require 'irb/completion'
begin
require 'awesome_print'
AwesomePrint.irb!
rescue LoadError => err
warn "Couldn't load awesome_print: #{err}"
end
IRB.conf[:PROMPT_MODE] = :SIMPLE
IRB.conf[:AUTO_INDENT] = true
@mohnish
Copy link
Author

mohnish commented Feb 29, 2016

put this file in your home ~/ dir so that IRB loads up the .irbrc from ~/.irbrc

@mohnish
Copy link
Author

mohnish commented Feb 29, 2016

or

git clone git@gist.github.com:18d046d5f260564fc9e1.git /tmp/irb_config
cd /tmp/irb_config
cp .irbrc ~/.irbrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment