public
Description: Phil Hagelberg's personal dotfiles collection: the product of years of accumulated obsessive minor tweaks. Mostly Emacs Lisp.
Homepage: http://technomancy.us
Clone URL: git://github.com/technomancy/dotfiles.git
dotfiles / .irbrc
100644 24 lines (18 sloc) 0.396 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*-ruby-*-
 
require 'irb/completion'
require 'rubygems'
require 'wirble'
require 'yaml'
 
# start wirble (with color)
Wirble.init
# Wirble.colorize unless IRB.conf[:PROMPT_MODE] == :INF_RUBY
 
def ri(obj)
  puts "ri #{obj}"
end
 
# Inspecting really long strings causes inf-ruby to get really, really slow.
# class String
# def inspect
# puts self
# end
# end
 
IRB.conf[:AUTO_INDENT]=true