diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-08-03T14·58+0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-03T14·58+0200 |
commit | 122e1a61f8deb55a38a00534c502fd8c6700d539 (patch) | |
tree | c6a83d4db01d2c692f44904892cfd3c2b80fcbce /doc/manual/command-ref/nix-shell.xml | |
parent | 49a53c1d3f77ff33e14a95d004a6ce0720293997 (diff) | |
parent | 438e02529dfb4b26603e2a06992df977cd80ecd9 (diff) |
Merge pull request #2323 from samueldr/feature/selective-impurity
Allows selectively adding environment variables to pure shells.
Diffstat (limited to 'doc/manual/command-ref/nix-shell.xml')
-rw-r--r-- | doc/manual/command-ref/nix-shell.xml | 8 |
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 62d026ac238e..5c44c4a8f446 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> |