Skip to content

Fix: color theme examples#1925

Merged
fdncred merged 3 commits into
nushell:mainfrom
levitte:patch-1
Aug 21, 2025
Merged

Fix: color theme examples#1925
fdncred merged 3 commits into
nushell:mainfrom
levitte:patch-1

Conversation

@levitte
Copy link
Copy Markdown
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.
Comment thread book/coloring_and_theming.md Outdated
Comment thread book/coloring_and_theming.md Outdated
$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
Copy Markdown

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
Copy Markdown
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.

Comment thread book/coloring_and_theming.md Outdated
Comment thread book/coloring_and_theming.md Outdated
@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