summaryrefslogtreecommitdiff
path: root/lib/irb/init.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-07 15:02:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-07 15:02:32 +0000
commit39b30616a54610567217ecce7c597fe59b624d7d (patch)
tree1f204ea38251c95dd268ebe11577b579154c6526 /lib/irb/init.rb
parenta6e6bb626ca28ece8d6423caab31238a3ce918c2 (diff)
downloadruby-39b30616a54610567217ecce7c597fe59b624d7d.tar.gz
* ext/curses/curses.c (curses_insertln): merged a patch from
TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>. [ruby-ext:02305] * lib/irb/init.rb (IRB::IRB.rc_file_generators): more flexible IRB.rc_file_generators. [ruby-core:05163] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/init.rb')
-rw-r--r--lib/irb/init.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index ad46a0afdc..bc8f9b599b 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -223,6 +223,9 @@ module IRB
# enumerate possible rc-file base name generators
def IRB.rc_file_generators
+ if irbrc = ENV["IRBRC"]
+ yield proc{|rc| irbrc}
+ end
if home = ENV["HOME"]
yield proc{|rc| home+"/.irb#{rc}"}
end