blob: b06f381112aa2db2f7a46cfa3c5a1a9d47207282 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?xml version="1.0" encoding="UTF-8"?>
<devbook self="tasks-reference/environment/">
<chapter>
<title>Environment files</title>
<body>
<p>
Some packages need to globally set an environment variable for all users. The
canonical way of doing this is via <c>/etc/env.d</c>. All files in this directory
are sourced when generating user environment settings.
</p>
<p>
This directory should <b>only</b> be used for setting environment variables.
</p>
<p>
To install a file into this directory, use <c>doenvd</c> or <c>newenvd</c> (see
<uri link="::function-reference/install-functions/"/>). The format of the file
should be a series of lines in the form <c>VARIABLE="the value"</c>.
</p>
<p>
There is further discussion in the <uri
link="https://wiki.gentoo.org/wiki/Handbook:X86/Working/EnvVar">
Environment Variables section</uri>.
</p>
</body>
</chapter>
</devbook>
|