Skip to content

Instantly share code, notes, and snippets.

@CodeOfficer
Forked from technicalpickles/init.rb
Created October 18, 2009 02:12
Show Gist options
  • Save CodeOfficer/212519 to your computer and use it in GitHub Desktop.
Save CodeOfficer/212519 to your computer and use it in GitHub Desktop.
def IRB.run_config
if @CONF[:RC]
begin
load rc_file
rescue LoadError, Errno::ENOENT
rescue
print "load error: #{rc_file}\n"
print $!.class, ": ", $!, "\n"
for err in $@[0, [email protected] - 2]
print "\t", err, "\n"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment