Skip to content

Instantly share code, notes, and snippets.

@yarinb
Created September 27, 2011 18:19
Show Gist options
  • Save yarinb/1245822 to your computer and use it in GitHub Desktop.
Save yarinb/1245822 to your computer and use it in GitHub Desktop.
current env
# This loads some niceties for irb, courtesy of rvm.
# It also loads your custom ~/.irbrc if it exists.
# If you want to customize the irbrc for ONLY this version of
# ruby then edit this file. It will only be deleted if you do
# an "rvm install" over this ruby version.
if ENV["rvm_path"].nil?
require File.join(ENV["HOME"], "irbrc")
else
require File.join(ENV["rvm_path"], "scripts", "irbrc")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment