Created
February 15, 2012 19:24
-
-
Save psi/1838319 to your computer and use it in GitHub Desktop.
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
current_dir = Dir.pwd | |
until current_dir == ENV['HOME'] | |
if File.exist?("#{current_dir}/.irbrc") | |
load "#{current_dir}/.irbrc" | |
break | |
else | |
current_dir = File.dirname(current_dir) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing this. Great little technique.