aboutsummaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-08-03 16:58:18 +0200
committerGitHub <noreply@github.com>2018-08-03 16:58:18 +0200
commit122e1a61f8deb55a38a00534c502fd8c6700d539 (patch)
treec6a83d4db01d2c692f44904892cfd3c2b80fcbce /doc/manual
parent49a53c1d3f77ff33e14a95d004a6ce0720293997 (diff)
parent438e02529dfb4b26603e2a06992df977cd80ecd9 (diff)
Merge pull request #2323 from samueldr/feature/selective-impurity
Allows selectively adding environment variables to pure shells.
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/command-ref/nix-shell.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/manual/command-ref/nix-shell.xml b/doc/manual/command-ref/nix-shell.xml
index 62d026ac2..5c44c4a8f 100644
--- a/doc/manual/command-ref/nix-shell.xml
+++ b/doc/manual/command-ref/nix-shell.xml
@@ -32,6 +32,7 @@
<arg><option>--run</option> <replaceable>cmd</replaceable></arg>
<arg><option>--exclude</option> <replaceable>regexp</replaceable></arg>
<arg><option>--pure</option></arg>
+ <arg><option>--keep</option> <replaceable>name</replaceable></arg>
<group choice='req'>
<arg choice='plain'>
<group choice='req'>
@@ -165,6 +166,13 @@ also <xref linkend="sec-common-options" />.</phrase></para>
</listitem></varlistentry>
+ <varlistentry><term><option>--keep</option> <replaceable>name</replaceable></term>
+
+ <listitem><para>When a <option>--pure</option> shell is started,
+ keep the listed environment variables.</para></listitem>
+
+ </varlistentry>
+
</variablelist>
<para>The following common options are supported:</para>