|
3 | 3 | text: Nu as a Shell
|
4 | 4 | link: /book/nu_as_a_shell.md
|
5 | 5 | ---
|
| 6 | + |
6 | 7 | # Configuration
|
7 | 8 |
|
8 | 9 | ## Quickstart
|
@@ -116,7 +117,7 @@ Other users may prefer a "modular" configuration where each file handles a small
|
116 | 117 | `config.nu` is commonly used to:
|
117 | 118 |
|
118 | 119 | - Set [environment variables](#set-environment-variables) for Nushell and other applications
|
119 |
| -- Set Nushell settings in [`$env.config`](#nushell-settings-in-the-envconfig-record) |
| 120 | +- Set Nushell settings in [`$env.config`](#nushell-settings-in-the-env-config-record) |
120 | 121 | - Load modules or source files so that their commands are readily available
|
121 | 122 | - Run any other applications or commands at startup
|
122 | 123 |
|
@@ -581,10 +582,10 @@ The following stages and their steps _may_ occur during startup, based on the fl
|
581 | 582 | | 18. | (config files) (plugin) | Processes the signatures in the user's `plugin.msgpackz` (located in the configuration directory) so that added plugins can be used in the following config files. |
|
582 | 583 | | 19. | (config files) | If this is the first time Nushell has been launched, then it creates the configuration directory. "First launch" is determined by whether or not the configuration directory exists. |
|
583 | 584 | | 20. | (config files) | Also, if this is the first time Nushell has been launched, creates a mostly empty (other than a few comments) `env.nu` and `config .nu` in that directory. |
|
584 |
| -| 21. | (config files) (default_env.nu) | Loads default environment variables from the internal `default_env.nu`. This file can be viewed with: `config env --default \| nu-highlight \| less -R`. | |
| 585 | +| 21. | (config files) (default_env.nu) | Loads default environment variables from the internal `default_env.nu`. This file can be viewed with: `config env --default \| nu-highlight \| less -R`. | |
585 | 586 | | 22. | (config files) (env.nu) | Converts the `PATH` variable into a list so that it can be accessed more easily in the next step. |
|
586 | 587 | | 23. | (config files) (env.nu) | Loads (parses and evaluates) the user's `env.nu` (the path to which was determined above). |
|
587 |
| -| 24. | (config files) (config.nu) | Loads a minimal `$env.config` record from the internal `default_config.nu`. This file can be viewed with: `config nu --default \| nu-highlight \| less -R`. Most values that are not defined in `default_config.nu` will be auto-populated into `$env.config` using their internal defaults as well. | |
| 588 | +| 24. | (config files) (config.nu) | Loads a minimal `$env.config` record from the internal `default_config.nu`. This file can be viewed with: `config nu --default \| nu-highlight \| less -R`. Most values that are not defined in `default_config.nu` will be auto-populated into `$env.config` using their internal defaults as well. | |
588 | 589 | | 25. | (config files) (config.nu) | Loads (parses and evaluates) the user's `config.nu` (the path to which was determined above). |
|
589 | 590 | | 26. | (config files) (login) | When Nushell is running as a login shell, loads the user's `login.nu`. |
|
590 | 591 | | 27. | (config files) | Loops through the vendor autoload directories and loads any `.nu` files found. The directories are processed in the order found in `$nu.vendor-autoload-dirs`, and files in those directories are processed in alphabetical order. |
|
|
0 commit comments