Skip to content

Commit 6e303a8

Browse files
committed
Document environment variables in separate section
1 parent c178d7a commit 6e303a8

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

src/ai_cli.5

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ section of library's manual page.
1818
Configuration files are searched and loaded in the order specified in
1919
.BR ai_cli (7).
2020
Entries in configuration files read later can override previous ones.
21-
All entries can be overridden by supplying to a program's invocation
22-
an environment variable named
23-
\fCAI_CLI_\fIsection\fC_\fIoption\fR,
24-
where dashes are replaced with underscores.
25-
For example, an environment variable setting could be
26-
\fCAI_CLI_prompt_gdb_user_1=Disable breakpoint 3\fP.
2721

2822
In general, system-wide configuration files are used to specify
2923
default behaviors,

src/ai_cli.7

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,15 @@ can be configured through the files and environment variables listed in the
9191
section and the format documented in
9292
.BR ai_cli (5).
9393

94-
.SH BUGS
95-
.B ai_cli
96-
will not work with programs that are linked statically with
97-
.BR readline (3)
98-
rather than using it as a shared library object.
94+
.SH ENVIRONMENT VARIABLES
95+
All configuration entries specified through
96+
.BR ai_cli (5).
97+
can be overridden by supplying to a program's
98+
invocation an environment variable named
99+
\fCAI_CLI_\fIsection\fC_\fIoption\fR,
100+
where dashes are replaced with underscores.
101+
For example, an environment variable setting could be
102+
\fCAI_CLI_prompt_gdb_user_1=Disable breakpoint 3\fP.
99103

100104
.SH FILES
101105
.IR /usr/share/ai-cli/config ,
@@ -111,6 +115,12 @@ configuration files.
111115
.SH SEE ALSO
112116
.BR ai_cli (5).
113117

118+
.SH BUGS
119+
.B ai_cli
120+
will not work with programs that are linked statically with
121+
.BR readline (3)
122+
rather than using it as a shared library object.
123+
114124
.SH AUTHOR
115125
Diomidis Spinellis ([email protected])
116126

0 commit comments

Comments
 (0)