Permalink
Browse files

Move prompt mode so sourced files can override IRB prompt

  • Loading branch information...
joshuaclayton committed Feb 6, 2011
1 parent db76bc8 commit 61dce3db60d8ae74476eabda4142928f8efbceb7
Showing with 2 additions and 2 deletions.
  1. +2 −2 irbrc
View
4 irbrc
@@ -1,11 +1,11 @@
require "rubygems"
+IRB.conf[:PROMPT_MODE] = :SIMPLE
+
def require_rb_files_from(dir)
Dir.glob(File.join(dir, "*.rb")) do |file|
require file
end
end
require_rb_files_from(File.join(ENV["HOME"], ".irbrc.d"))
-
-IRB.conf[:PROMPT_MODE] = :SIMPLE

0 comments on commit 61dce3d

Please sign in to comment.