Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 12 lines (8 sloc) 0.216 kb
6095a57 Fix irb includes
Joshua Clayton authored
1 require "rubygems"
5dbd6b2 Initial commit
Joshua Clayton authored
2
61dce3d @joshuaclayton Move prompt mode so sourced files can override IRB prompt
authored
3 IRB.conf[:PROMPT_MODE] = :SIMPLE
4
bac28ac Move around a bunch of files, following Elijah Miller's idea of
Joshua Clayton authored
5 def require_rb_files_from(dir)
6095a57 Fix irb includes
Joshua Clayton authored
6 Dir.glob(File.join(dir, "*.rb")) do |file|
bac28ac Move around a bunch of files, following Elijah Miller's idea of
Joshua Clayton authored
7 require file
8 end
5dbd6b2 Initial commit
Joshua Clayton authored
9 end
10
6095a57 Fix irb includes
Joshua Clayton authored
11 require_rb_files_from(File.join(ENV["HOME"], ".irbrc.d"))
Something went wrong with that request. Please try again.