2 ms·
Also, why NO_COLOR? That's "anti". It should be COLOR and set it to true or false.
by dheera 5y ago
Also, why NO_COLOR? That's "anti". It should be COLOR and set it to true or false.
- chmod775 5y agoPossibly because the established default is colored output, and the absence of a boolean environment variable is generally treated as "false". It might also be that COLOR is already used for other purposes by some software.
- npteljes 5y agoLet's call it MONOCHROME then. I too think that "disableSomething=enabled" naming schemes are confusing.
- goodpoint 5y agoCOLOR=(light|dark|none) would be much better.
- kevincox 5y agoThis also misses options such as letting COLOR=1 force colours which would be nice when I want to redirect "human" output to a file without bothering to set up a TTY. But I guess that ship has sailed.