1
0
mirror of https://github.com/nushell/nushell.git synced 2025-08-13 17:27:50 +02:00
Files
nushell/docs/commands/env.md
Justin Ma c0a1d18e3d update , regenerate commands' docs and update make_docs script ()
* feat: update , regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

29 lines
408 B
Markdown

---
title: env
layout: command
version: 0.59.0
---
Display current environment variables
## Signature
```> env ```
## Examples
Display current path environment variable
```shell
> env | where name == PATH
```
Check whether the env variable `MY_ENV_ABC` exists
```shell
> env | any? name == MY_ENV_ABC
```
Another way to check whether the env variable `PATH` exists
```shell
> 'PATH' in (env).name
```