You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/configuration.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ That's it! More details are below when you need them ...
52
52
To view a simplified version of this documentation from inside Nushell, run:
53
53
54
54
```nu
55
-
config env --doc | nu-highlight | less -R
55
+
config nu --doc | nu-highlight | less -R
56
56
```
57
57
58
58
:::
@@ -121,22 +121,20 @@ The [Environment](./environment.md) Chapter covers additional information on how
121
121
### Path Configuration
122
122
123
123
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.
125
124
126
125
:::tip
127
126
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.
128
127
:::
129
128
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:
132
130
133
131
```nu
134
132
$env.path ++= ["~/.local/bin"]
135
133
```
136
134
137
135
The Standard Library also includes a helper command. The default `path add` behavior is to _prepend_
138
136
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:
140
138
141
139
```nushell
142
140
use std/util "path add"
@@ -176,7 +174,7 @@ Each of these variables accepts either:
176
174
-`null`, in which case the component will revert to its internal default value.
177
175
178
176
::: 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:
180
178
181
179
```nu
182
180
$env.PROMPT_COMMAND_RIGHT = ""
@@ -238,7 +236,7 @@ variables are:
238
236
```
239
237
240
238
::: 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.
242
240
:::
243
241
244
242
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