Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect NOCOLOR #9056

Merged
merged 1 commit into from Sep 27, 2023
Merged

Respect NOCOLOR #9056

merged 1 commit into from Sep 27, 2023

Conversation

aakropotkin
Copy link
Contributor

@aakropotkin aakropotkin commented Sep 27, 2023

While nix has always been respectful towards requests for NO_COLOR=1, this change adds respect for NOCOLOR=1.

<3

Motivation

This ideally makes the tool more accessible to folks like me, who are exhausted by guessing whether NO_COLOR or NOCOLOR is the right environment variable to set.

Context

Several tools support both.
Some tools such as grep have been migrated from supporting NO_COLOR over to NOCOLOR and emit deprecation warnings.
Developers who use multiple machines and a variety of tools might be setting NO_COLOR=1 and/or NOCOLOR=1 and expect either/both to work.

Personally it's no skin off my back to check both, so why not make everyone happy?

Priorities

Add 馃憤 to pull requests you find important.

While `nix` has always been respectful towards requests for `NO_COLOR=1`, this change asks represents a new stage of maturity for `nix` - making it also respect quests for `NOCOLOR=1`.

This ideally makes the tool more accessible to folks like me, who are exhausted by guessing whether `NO_COLOR` or `NOCOLOR` is the right environment variable to set.

<3
Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@roberth roberth merged commit 4b78a66 into NixOS:master Sep 27, 2023
12 checks passed
@aakropotkin aakropotkin deleted the patch-1 branch September 27, 2023 21:44
@fricklerhandwerk fricklerhandwerk added the UX The way in which users interact with Nix. Higher level than UI. label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UX The way in which users interact with Nix. Higher level than UI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants