Skip to content

Commit edf5a73

Browse files
kyanagimatzbot
authored andcommitted
[ruby/irb] Complete the missing documentation abount the environment
variables (ruby/irb#1028) ruby/irb@68f5cf0535
1 parent dd473ce commit edf5a73

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

man/irb.1

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ The default value is 16.
180180
.El
181181
.Pp
182182
.Sh ENVIRONMENT
183-
.Bl -tag -compact -width "XDG_CONFIG_HOME"
183+
.Bl -tag -compact -width "IRB_USE_AUTOCOMPLETE"
184184
.It Ev IRB_LANG
185185
The locale used for
186186
.Nm .
@@ -190,10 +190,43 @@ The path to the personal initialization file.
190190
.Pp
191191
.It Ev XDG_CONFIG_HOME
192192
.Nm
193-
respects XDG_CONFIG_HOME. If this is set, load
193+
respects XDG_CONFIG_HOME. If it is set and
194+
.Ev IRBRC
195+
is unset, load
194196
.Pa $XDG_CONFIG_HOME/irb/irbrc
195197
as a personal initialization file.
196198
.Pp
199+
.It Ev RI_PAGER
200+
The command specified would be used as a pager.
201+
.Pp
202+
.It Ev PAGER
203+
The command specified would be used as a pager if
204+
.Ev RI_PAGER
205+
is unset.
206+
.Pp
207+
.It Ev VISUAL
208+
Its value would be used to open files by the edit command.
209+
.Pp
210+
.It Ev EDITOR
211+
Its value would be used to open files by the edit command if
212+
.Ev VISUAL
213+
is unset.
214+
.Pp
215+
.It Ev NO_COLOR
216+
Assigning a value to it disables colorization.
217+
.Pp
218+
.It Ev IRB_USE_AUTOCOMPLETE
219+
Assigning
220+
.Sy false
221+
to it disables autocompletion.
222+
.Pp
223+
.It Ev IRB_COMPLETOR
224+
Autocompletion behavior. Allowed values are
225+
.Sy regexp
226+
or
227+
.Sy type
228+
.
229+
.Pp
197230
.El
198231
.Pp
199232
Also

0 commit comments

Comments
 (0)