dotfiles/ruby/irbrc

12 lines
280 B
Plaintext
Raw Normal View History

2013-02-22 16:44:37 +01:00
require 'irb/completion'
2014-07-07 14:49:42 +02:00
# configure irb
2013-02-22 16:44:37 +01:00
IRB.conf[:AUTO_INDENT]=true
2014-07-07 14:49:42 +02:00
# irb history
IRB.conf[:EVAL_HISTORY] = 1000
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = File.expand_path("~/.irb_history")
2016-03-11 16:58:44 +01:00
load "#{ENV['HOME']}/.rubyrc" if File.exist?("#{ENV['HOME']}/.rubyrc")