-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
implement CLICOLOR_FORCE environment variable #12148
base: master
Are you sure you want to change the base?
Conversation
This allows to force colors but not disable other features such as the progress bar. This is for instance useful in CI environments. Adapted from https://git.lix.systems/lix-project/lix/commit/378ec5fb0611e314511a7afc806664205846fc2e and others.
cc @xokdvium |
This still spawns a progressbar |
Ah. Because of |
// set x x No | ||
// unset x set Yes | ||
// unset x unset If attached to a terminal | ||
// [we choose the "modern" approach of colour-by-default] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming the x
means "any value"...? Could you just write that, please? 😆
It took me so long to understand the difference between "x" and "set" x)
This allows to force colors but not disable other features such as the progress bar. This is for instance useful in CI environments.
Adapted from
https://git.lix.systems/lix-project/lix/commit/378ec5fb0611e314511a7afc806664205846fc2e and others.
Tested in https://buildbot.thalheim.io/#/builders/103/builds/1490
Motivation
Context
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.