Home Explore Blog CI



nushell

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

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

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

## Signature

```> config nu {flags} ```

## Flags

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


## Input/output types:

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

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

```

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

```

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

```

Chunks
a657298c (1st chunk of `commands/docs/config_nu.md`)
Title: config nu: Edit NuShell Configurations
Summary
The `config nu` command allows users to edit NuShell configurations. It can open the user's `config.nu` file in the default editor, print a commented `config.nu` with documentation, or print the internal default `config.nu` file. Flags include `--default` to print the internal default config and `--doc` to print a commented config with documentation.