From e658da94086893034c0bafa050f36751b206a48a Mon Sep 17 00:00:00 2001 From: Kouhei Yanagita Date: Tue, 17 May 2022 18:47:41 +0900 Subject: [PATCH] [ruby/irb] Fix documents for .irbrc path https://github.com/ruby/irb/commit/af99c01b0d --- lib/irb.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/irb.rb b/lib/irb.rb index 6887d5596e..c9c5b1561e 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -102,10 +102,13 @@ require_relative "irb/easter-egg" # # == Configuration # -# IRB reads from ~/.irbrc when it's invoked. -# -# If ~/.irbrc doesn't exist, +irb+ will try to read in the following order: +# IRB reads a personal initialization file when it's invoked. +# IRB searches a file in the following order and loads the first one found. # +# * +$IRBRC+ (if +$IRBRC+ is set) +# * +$XDG_CONFIG_HOME/irb/irbrc+ (if +$XDG_CONFIG_HOME+ is set) +# * +~/.irbrc+ +# * +.config/irb/irbrc+ # * +.irbrc+ # * +irb.rc+ # * +_irbrc+