aboutsummaryrefslogtreecommitdiff
blob: f6eea7ab5113d08fccd4400adb4e1e60acab9dab (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"?>
<guide 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
`Install Functions Reference`_). 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="http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=5">
Environment Variables section</uri>.
</p>

</body>
</chapter>
</guide>