Created
September 11, 2013 12:54
-
-
Save gucki/6523172 to your computer and use it in GitHub Desktop.
irb history per rails project
This file contains hidden or 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
# ~/.irbrc | |
require 'irb/completion' | |
require 'irb/ext/save-history' | |
IRB.conf[:SAVE_HISTORY] = 1000 | |
if defined?(::Rails) | |
IRB.conf[:HISTORY_FILE] = File.join(ENV['PWD'], '.irb-history') | |
else | |
IRB.conf[:HISTORY_FILE] = File.join(ENV['HOME'], '.irb-history') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dont't forget to put .irb-history in your .gitignore file.. :)