Skip to content

Commit

Permalink
update doc about env assignment (nushell#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
WindSoilder committed Jul 28, 2023
1 parent 019e22d commit d6b3d39
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions book/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@ The environment is initially created from the Nu [configuration files](configura

There are several ways to set an environment variable:

### [`let-env`](/commands/docs/let-env.html)
### $env.VAR assignment

Using the [`let-env`](/commands/docs/let-env.md) command is the most straightforward method
Using the `$env.VAR = "val"` is the most straightforward method

```
> $env.FOO = 'BAR'
```

'let-env' is similar to the **export** command in Bash.

So, if you want to extend the Windows `Path` variable, for example, you could do that as follows.

```
Expand Down

0 comments on commit d6b3d39

Please sign in to comment.