default_config.nuanddefault_env.nurefer to the files that are compiled inside of the nushell executable and are also located in our repo.personal env.nu/config.nu/login.nurefer to the files that are in the$nu.default-config-dirthat you have personally edited.specified config.nu/env.nurefer to files that are specified on the command line with the--configand--env-configcommand line parameters.
- β Always reads the nushell standard library
- β
Always reads
personal plugin.msgpackzfile if it exists - β
Always reads
personal env.nufile if it exists - β
Always reads
personal config.nufile if it exists - β Does not read
personal login.nufile if it exists - β Does not read
default_env.nufile - β Does not read
default_config.nufile
- β Always reads the nushell standard library
- β
Always reads
personal plugin.msgpackzfile if it exists - β
Always reads the
default_env.nufile - β Does not read
default_config.nufile - β Does not read
personal env.nufile - β Does not read
personal config.nufile - β Does not read
personal login.nufile
- β Always reads the nushell standard library
- β
Always reads
personal plugin.msgpackzfile if it exists - β
Always reads
personal env.nufile if it exists - β
Always reads
personal config.nufile if it exists - β
Always reads
personal login.nufile if it exists - β Does not read
default_env.nufile - β Does not read
default_config.nufile
- β Always reads the nushell standard library
- β
Always reads
personal plugin.msgpackzfile if it exists - β
Always reads
personal env.nufile if it exists - β
Always reads
specified configfile if it exists - β
Always reads
personal login.nufile if it exists - β Does not read
default_env.nufile - β Does not read
default_config.nufile
- β Always reads the nushell standard library
- β
Always reads
personal plugin.msgpackzfile if it exists - β
Always reads
specified env.nufile if it exists - β
Always reads
specified config.nufile if it exists - β
Always reads
personal login.nufile if it exists - β Does not read
default_env.nufile - β Does not read
default_config.nufile
- β Always reads the nushell standard library
- β Does not read
personal plugin.msgpackzfile - β Does not read
personal env.nufile - β Does not read
personal config.nufile - β Does not read
personal login.nufile - β Does not read
default_env.nufile (seems odd to me that it's not loading deafult_env.nu) - β Does not read
default_config.nufile (seems odd to me that it's not loading deafult_config.nu)
- β Always reads the nushell standard library
- β
Always reads
personal plugin.msgpackzfile if it exists - β Does not read
personal env.nufile - β Does not read
personal config.nufile - β Does not read
personal login.nufile - β
Always reads
default_env.nufile - β Does not read
default_config.nufile
- β Always reads the nushell standard library
- β
Always reads
personal plugin.msgpackzfile if it exists - β
Always reads
specified env.nufile if it exists - β
Always reads
specified config.nufile if it exists - β Does not read
personal login.nufile - β Does not read
default_env.nufile - β Does not read
default_config.nufile
- β Does not read the nushell standard library
- β Does not read
personal plugin.msgpackzfile - β Does not read
personal env.nufile - β Does not read
personal config.nufile - β Does not read
personal login.nufile - β Does not read
default_env.nufile - β Does not read
default_config.nufile
When nushell is initially launched, and there is no config directory created yet, nushell will prompt you to create one and add the default_config.nu and default_env.nu in that folder. If you say no to this, a nushell folder will be created anyway without putting any config files in that folder and a history.txt file will be placed in that folder. Once that is done, these files are sourced. Each time you start nushell, and there is no config.nu or env.nu in the config folder, the default_config.nu and default_env.nu are sourced and you can see the settings in $env.
- β Always reads the nushell standard library
- β Always reads
personal plugin.msgpackzfile if it exists - β Always reads
personal env.nufile if it exists - β Always reads
personal config.nufile if it exists - β Does not read
personal login.nufile if it exists - β
Always reads
default_env.nufile - β
Always reads
default_config.nufile
I just updated this 2024-09-26 nushell version 0.98.1
what about the behavior when used in scripts?