Permalink
Browse files

irb history

  • Loading branch information...
Jason King
Jason King committed Dec 20, 2012
1 parent f428a7a commit 5f3df059458e0769577db87f043a1a56b1dd9821
Showing with 4 additions and 0 deletions.
  1. +4 −0 .irbrc
View
4 .irbrc
@@ -3,6 +3,10 @@ require 'rubygems'
require 'irb/completion'
require 'pp'
+require 'irb/ext/save-history'
+IRB.conf[:SAVE_HISTORY] = 1000
+IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
+
if ENV['RAILS_ENV']
load File.join( File.dirname(__FILE__), '.railsrc')
end

0 comments on commit 5f3df05

Please sign in to comment.