Skip to content

Fix: color theme examples #1925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 21, 2025
Merged

Fix: color theme examples #1925

merged 3 commits into from
Aug 21, 2025

Conversation

levitte
Copy link
Contributor

@levitte levitte commented May 27, 2025

The color theme examples in book/coloring_and_theming.md weren't quite right.

The color theme examples in book/coloring_and_theming.md weren't quite right.
$env.config = {
# ...
color_config: (light_theme) # if you want a light theme, replace `$dark_theme` to `$light_theme`
color_config: (light-theme) # if you want a light theme, replace `$dark_theme` to `$light_theme`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment is misleading. It appears to be a leftover from nushell PR #5804, which modified default_config.nu. However, that file has since been deprecated. I suggest removing this comment or changing it, as it no longer reflects the current state of the configuration.

Suggested change
color_config: (light-theme) # if you want a light theme, replace `$dark_theme` to `$light_theme`
color_config: (light-theme)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think (light-theme) or (dark-theme) will work as long as they're brought into scope with use.

@fdncred fdncred merged commit 82b7830 into nushell:main Aug 21, 2025
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.

3 participants