[前][次][番号順一覧][スレッド一覧]

ruby-changes:71844

From: Kouhei <ko1@a...>
Date: Wed, 18 May 2022 07:12:45 +0900 (JST)
Subject: [ruby-changes:71844] e658da9408 (master): [ruby/irb] Fix documents for .irbrc path

https://git.ruby-lang.org/ruby.git/commit/?id=e658da9408

From e658da94086893034c0bafa050f36751b206a48a Mon Sep 17 00:00:00 2001
From: Kouhei Yanagita <yanagi@s...>
Date: Tue, 17 May 2022 18:47:41 +0900
Subject: [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" https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L102
 #
 # == Configuration
 #
-# IRB reads from <code>~/.irbrc</code> when it's invoked.
-#
-# If <code>~/.irbrc</code> 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+
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]