Skip to content

Instantly share code, notes, and snippets.

@psi
Created February 15, 2012 19:24
Show Gist options
  • Save psi/1838319 to your computer and use it in GitHub Desktop.
Save psi/1838319 to your computer and use it in GitHub Desktop.
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
@xentek
Copy link

xentek commented Feb 15, 2012

Thanks for sharing this. Great little technique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment