Skip to content

Commit 5c9d939

Browse files
authored
Fixes a few Config chapter issues (#1712)
1 parent 1a4abd2 commit 5c9d939

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

book/configuration.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ That's it! More details are below when you need them ...
5252
To view a simplified version of this documentation from inside Nushell, run:
5353

5454
```nu
55-
config env --doc | nu-highlight | less -R
55+
config nu --doc | nu-highlight | less -R
5656
```
5757

5858
:::
@@ -121,22 +121,20 @@ The [Environment](./environment.md) Chapter covers additional information on how
121121
### Path Configuration
122122

123123
As with most shells, Nushell searches the environment variable named `PATH` (or variants).
124-
The `env.nu` file is often used to add (and sometimes remove) directories on the path.
125124

126125
:::tip
127126
Unlike some shells, Nushell attempts to be "case agnostic" with environment variables. `Path`, `path`, `PATH`, and even `pAtH` are all allowed variants of the same environment variable. See [Environment - Case Sensitivity](./environment.md#case-sensitivity) for details.
128127
:::
129128

130-
When Nushell is launched, it usually inherits the `PATH` as a string. However, Nushell automatically converts this to a Nushell list for easy access. This means that you can _append_ to
131-
the path using, for example:
129+
When Nushell is launched, it usually inherits the `PATH` as a string. However, Nushell automatically converts this to a Nushell list for easy access. This means that you can _append_ to the path using, for example:
132130

133131
```nu
134132
$env.path ++= ["~/.local/bin"]
135133
```
136134

137135
The Standard Library also includes a helper command. The default `path add` behavior is to _prepend_
138136
a directory so that it has higher precedence than the rest of the path. For example, the following can be
139-
added to `env.nu`:
137+
added to your startup config:
140138

141139
```nushell
142140
use std/util "path add"
@@ -176,7 +174,7 @@ Each of these variables accepts either:
176174
- `null`, in which case the component will revert to its internal default value.
177175

178176
::: tip
179-
To disable the right-prompt, for instance, add the following to `env.nu`:
177+
To disable the right-prompt, for instance, add the following to your startup config:
180178

181179
```nu
182180
$env.PROMPT_COMMAND_RIGHT = ""
@@ -238,7 +236,7 @@ variables are:
238236
```
239237

240238
::: tip
241-
As mentioned above, the OS Path variable is automatically converted by Nushell. As a result, it can be treated as a list within `env.nu` without needing to be present in `ENV_CONVERSIONS`. Other colon-separated paths, like `XDG_DATA_DIRS`, are not automatically converted.
239+
As mentioned above, the OS Path variable is automatically converted by Nushell. As a result, it can be treated as a list within your startup config without needing to be present in `ENV_CONVERSIONS`. Other colon-separated paths, like `XDG_DATA_DIRS`, are not automatically converted.
242240
:::
243241

244242
To add an additional conversion, [`merge`](/commands/docs/merge.md) it into the `$env.ENV_CONVERSIONS` record. For example, to add a conversion for the `XDG_DATA_DIRS` variable:

0 commit comments

Comments
 (0)