| Force config file | `nu --config <file>` | Forces steps marked with **_(config.nu)_** above to run with the provided config `<file>`, unless `-n` was also specified |
| Force env file | `nu --env-config <file>` | Forces steps marked with **_(default_env.nu)_** and **_(env.nu)_** above to run with the specified env `<file>`, unless `-n` was also specified |
### Scenarios
- `nu`:
- ✅ Makes the Standard Library available
- ✅ Reads user's `plugin.msgpackz` file if it exists in the config directory
- ✅ Sources the `default_env.nu` file internally
- ✅ Sources the user's `env.nu` file if it exists in the config directory
- ✅ Sources the `default_config.nu` file internally
- ✅ Sources user's `config.nu` file if it exists if it exists in the config directory
- ❌ Does not read `personal login.nu` file
- ✅ Enters the REPL
- `nu -c "ls"`:
- ✅ Makes the Standard Library available
- ✅ Reads user's `plugin.msgpackz` file if it exists in the config directory
- ✅ Sources the `default_env.nu` file internally
- ❌ Does not source the user's `env.nu`
- ❌ Does not read the internal `default_config.nu` file
- ❌ Does not read the user's `config.nu` file
- ❌ Does not read the user's `login.nu` file
- ✅ Runs the `ls` command and exits
- ❌ Does not enter the REPL
- `nu -l -c "ls"`:
- ✅ Makes the Standard Library available
- ✅ Reads user's `plugin.msgpackz` file if it exists in the config directory
- ✅ Sources the `default_env.nu` file internally
- ✅ Sources the user's `env.nu` file if it exists in the config directory
- ✅ Sources the `default_config.nu` file internally
- ✅ Sources user's `config.nu` file if it exists in the config directory
- ✅ Sources the user's `login.nu` file if it exists in the config directory
- ✅ Runs the `ls` command and exits
- ❌ Does not enter the REPL
- `nu -l -c "ls" --config foo_config.nu`
- Same as above, but reads an alternative config file named `foo_config.nu` from the config directory
- `nu -n -l -c "ls"`: