Home Explore Blog CI



nushell

commands/docs/config_env.md
b8c2259d2779dcfb040e272b04e5425d5e849526f039add30000000300000416
---
title: config env
categories: |
  env
version: 0.104.0
env: |
  Edit nu environment configurations.
usage: |
  Edit nu environment configurations.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `config env` for [env](/commands/categories/env.md)

<div class='command-title'>Edit nu environment configurations.</div>

## Signature

```> config env {flags} ```

## Flags

 -  `--default, -d`: Print the internal default `env.nu` file instead.
 -  `--doc, -s`: Print a commented `env.nu` with documentation instead.


## Input/output types:

| input   | output |
| ------- | ------ |
| nothing | any    |
## Examples

open user's env.nu in the default editor
```nu
> config env

```

pretty-print a commented `env.nu` that explains common settings
```nu
> config env --doc | nu-highlight,

```

pretty-print the internal `env.nu` file which is loaded before the user's environment
```nu
> config env --default | nu-highlight,

```

Chunks
314df43f (1st chunk of `commands/docs/config_env.md`)
Title: config env: Edit Nu Environment Configurations
Summary
The `config env` command is used to edit Nu environment configurations. It can open the user's `env.nu` file in the default editor, print a commented `env.nu` file with documentation, or print the internal default `env.nu` file. Flags include `--default` to print the internal default, and `--doc` to print a commented file with documentation.