Created
February 29, 2016 21:23
-
-
Save mohnish/18d046d5f260564fc9e1 to your computer and use it in GitHub Desktop.
awesome .irbrc
This file contains 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 '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 |
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
put this file in your home
~/
dir so that IRB loads up the.irbrc
from~/.irbrc