Skip to content

Commit 3ac7de4

Browse files
authored
Cookbook setup: fix command to append to PATH (#1055)
so it can be used inside config.nu as well
1 parent b76acce commit 3ac7de4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cookbook/setup.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ There are other ways to view these values and variables, however setting up your
1313

1414
In order to configure your path in nushell you'll need to modify your `PATH` environment variable in your `config.nu` file. Open your `config.nu` file and put an entry in it like `$env.PATH = "path1;path2;path3"` ensuring that you use the proper path separation character, which is different by platform.
1515

16-
Alternately, if you want to change your path temporarily, you can do the same command at the prompt.
17-
18-
If you want to append a folder to your `PATH` environment variable you can do that too using the `append` or `prepend` command like this:
16+
Alternately, if you want to append a folder to your `PATH` environment variable you can do that too using the `append` or `prepend` command like this:
1917

2018
```shell
21-
> $env.PATH = ($env.PATH | append "some/other/path")
19+
$env.PATH = ($env.PATH | split row (char esep) | append "some/other/path")
2220
```
2321

24-
For more detailed instructions, see the environment variables documentation [here](/book/environment.html#setting-environment-variables)
22+
For more detailed instructions, see the documentation about [environment variables](/book/environment.html#setting-environment-variables) and [PATH configuration](/book/configuration.html#path-configuration).
2523

2624
### How to list your environment variables
2725

0 commit comments

Comments
 (0)