diff options
author | Kouhei Yanagita <yanagi@shakenbu.org> | 2022-05-17 18:47:41 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-05-18 07:12:29 +0900 |
commit | e658da94086893034c0bafa050f36751b206a48a (patch) | |
tree | d03f0534960260c94683bdd77c7228e45db3fca8 | |
parent | 11af23ee923858fbcec18f2d1365296fdfe24dc2 (diff) |
[ruby/irb] Fix documents for .irbrc path
https://github.com/ruby/irb/commit/af99c01b0d
-rw-r--r-- | lib/irb.rb | 9 |
1 files 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 <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+ |