Skip to content

docs: update startup stages to include sourcing of autoload directories#2158

Merged
fdncred merged 1 commit intonushell:mainfrom
fdncred:update_config_autoloads_scenarios
Apr 21, 2026
Merged

docs: update startup stages to include sourcing of autoload directories#2158
fdncred merged 1 commit intonushell:mainfrom
fdncred:update_config_autoloads_scenarios

Conversation

@fdncred
Copy link
Copy Markdown
Contributor

@fdncred fdncred commented Apr 21, 2026

This PR updates the scenarios to describe when the files in vendor-autoload-dirs and the files in user-autoload-dirs are loaded.

vendor-autoload-dirs and user-autoload-dirs are loaded only when setup_config() is executed. That occurs for regular REPL startup and for LSP/MCP startup when config files are allowed. In contrast, command-string execution (nu -c ...) and script execution (nu script.nu) use run_commands() and run_file(), which do not call setup_config(), so autoload directories are not processed in those cases.

@fdncred fdncred merged commit bf41505 into nushell:main Apr 21, 2026
2 checks passed
@fdncred fdncred deleted the update_config_autoloads_scenarios branch April 21, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant