File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ commands, but you won't be able to index/search your mail.
2222
2323By default, \fB mu \fR uses colorized output when it thinks your
2424terminal is capable of doing so. If you don't like color, you can use
25- the \fB --nocolor \fR command-line option, or set the \fB MU_NOCOLOR \fR
26- environment variable to non-empty.
25+ the \fB --nocolor \fR command-line option, or set either the
26+ \fB MU_NOCOLOR \fR or the \fB NO_COLOR \fR environment variable to
27+ non-empty.
2728
2829.SH INDEXING YOUR E-MAIL
2930
Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ set_group_mu_defaults (void)
7979 MU_CONFIG .muhome = exp ;
8080 }
8181
82- /* check for the MU_NOCOLOR env var ; but in any case don't
82+ /* check for the MU_NOCOLOR or NO_COLOR env vars ; but in any case don't
8383 * use colors unless we're writing to a tty */
84- if (g_getenv (MU_NOCOLOR ) != NULL )
84+ if (g_getenv (MU_NOCOLOR ) != NULL || g_getenv ( "NO_COLOR" ) != NULL )
8585 MU_CONFIG .nocolor = TRUE;
8686
8787 if (!isatty (fileno (stdout )) || !isatty (fileno (stderr )))
You can’t perform that action at this time.
0 commit comments