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

ruby-changes:73860

From: Kouhei <ko1@a...>
Date: Wed, 5 Oct 2022 19:20:35 +0900 (JST)
Subject: [ruby-changes:73860] 107acbd9a4 (master): [ruby/irb] Add description of IRB_LANG, IRBRC, and XDG_CONFIG_HOME to man

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

From 107acbd9a475f74be89e63fbb12c11593692b59f Mon Sep 17 00:00:00 2001
From: Kouhei Yanagita <yanagi@s...>
Date: Wed, 18 May 2022 11:21:24 +0900
Subject: [ruby/irb] Add description of IRB_LANG, IRBRC, and XDG_CONFIG_HOME to
 man

https://github.com/ruby/irb/commit/564bd91387
---
 man/irb.1 | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/man/irb.1 b/man/irb.1
index 50db899177..c589c99c78 100644
--- a/man/irb.1
+++ b/man/irb.1
@@ -173,8 +173,19 @@ The default value is 16. https://github.com/ruby/ruby/blob/trunk/man/irb.1#L173
 .El
 .Pp
 .Sh ENVIRONMENT
-.Bl -tag -compact
+.Bl -tag -compact -width "XDG_CONFIG_HOME"
+.It Ev IRB_LANG
+The locale used for
+.Nm .
+.Pp
 .It Ev IRBRC
+The path to the personal initialization file.
+.Pp
+.It Ev XDG_CONFIG_HOME
+.Nm
+respects XDG_CONFIG_HOME. If this is set, load
+.Pa $XDG_CONFIG_HOME/irb/irbrc
+as a personal initialization file.
 .Pp
 .El
 .Pp
@@ -186,7 +197,17 @@ depends on same variables as https://github.com/ruby/ruby/blob/trunk/man/irb.1#L197
 .Sh FILES
 .Bl -tag -compact
 .It Pa ~/.irbrc
-Personal irb initialization.
+Personal irb initialization. If
+.Ev IRBRC
+is set, read
+.Pa $IRBRC
+instead. If
+.Ev IRBRC
+is not set and
+.Ev XDG_CONFIG_HOME
+is set,
+.Pa $XDG_CONFIG_HOME/irb/irbrc
+is loaded.
 .Pp
 .El
 .Pp
-- 
cgit v1.2.1


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

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