-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Honor the NO_COLOR env variable #4246
Conversation
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.
Thanks for the fix. NO_COLOR for the win!
BTW ... are you also going to update the NO_COLOR website or do you want me to do that? - https://github.com/jcs/no_color |
When the NO_COLOR env variable is set, then avoid coloring the terminal. --color argument does overrides the env variable Inspired by https://no-color.org and asked in discussion: com-lihaoyi#4170
ee588b5
to
d6295cb
Compare
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.
Looks good to me. Using _.nonEmpty
(as @lolgab requested) would be even nicer. And a cross reference to the no-color.org site would be nice too.
Co-authored-by: Lorenzo Gabriele <lorenzolespaul@gmail.com>
@gamlerhart Sorry for being ambiguous. I meant to add Mill to the no-color.org site. I think the link in the |
This reverts commit 8c8955b.
When the NO_COLOR env variable is set,
then avoid coloring the terminal.
--color argument does overrides the env variable
Inspired by https://no-color.org
and asked in discussion: #4170