Skip to content

Add missing color_config settings#14603

Merged
fdncred merged 1 commit intonushell:mainfrom
NotTheDr01ds:color-config
Dec 17, 2024
Merged

Add missing color_config settings#14603
fdncred merged 1 commit intonushell:mainfrom
NotTheDr01ds:color-config

Conversation

@NotTheDr01ds
Copy link
Copy Markdown
Contributor

@NotTheDr01ds NotTheDr01ds commented Dec 16, 2024

Description

Fixes #14600 by adding a default value for missing keys in default_config.nu:

  • $env.config.color_config.glob
  • $env.config.color_config.closure

User-Facing Changes

Will no longer error when accessing these keys.

Tests + Formatting

  • 🟢 toolkit fmt
  • 🟢 toolkit clippy
  • 🟢 toolkit test
  • 🟢 toolkit test stdlib

After Submitting

N/A

@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Dec 17, 2024

For completeness we can add these. Like you said in the issue, we may find that closure isn't able to be styled and we can just remove it. Thanks

@fdncred fdncred merged commit 6367fb6 into nushell:main Dec 17, 2024
@github-actions github-actions bot added this to the v0.101.0 milestone Dec 17, 2024
@NotTheDr01ds NotTheDr01ds deleted the color-config branch December 18, 2024 03:11
@fdncred fdncred added the A:configuration Issue related to nu's configuration label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:configuration Issue related to nu's configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No $env.config.color_config.glob option

2 participants