- ✅ 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"`:
- ✅ Makes the Standard Library available
- ❌ Does not read user's `plugin.msgpackz`
- ❌ Does not read the internal `default_env.nu`
- ❌ 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 test.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
- ❌ 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 `test.nu` file as a script
- ❌ Does not enter the REPL
- `nu --config foo_config.nu test.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
- ❌ Does not source the user's `env.nu` (no `--env-config` was specified)
- ✅ Sources the `default_config.nu` file internally. Note that `default_config.nu` is always handled before a user's config
- ✅ Sources user's `config.nu` file if it exists in the config directory
- ❌ Does not read the user's `login.nu` file
- ✅ Runs `test.nu` file as a script
- ❌ Does not enter the REPL
- `nu -n --no-std-lib` (fastest REPL startup):
- ❌ Does not make the Standard Library available
- ❌ Does not read user's `plugin.msgpackz`
- ❌ Does not read the internal `default_env.nu`
- ❌ 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
- ✅ Enters the REPL
- `nu -n --no-std-lib -c "ls"` (fastest command-string invocation):
- ❌ Does not make the Standard Library available
- ❌ Does not read user's `plugin.msgpackz`
- ❌ Does not read the internal `default_env.nu`
- ❌ 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