Set default --color to "off"

This commit is contained in:
Yorhel 2024-04-20 15:45:37 +02:00
parent 29bbab64b3
commit e1818430b7
2 changed files with 2 additions and 6 deletions

7
ncdu.1
View file

@ -1,6 +1,6 @@
.\" SPDX-FileCopyrightText: Yoran Heling <projects@yorhel.nl> .\" SPDX-FileCopyrightText: Yoran Heling <projects@yorhel.nl>
.\" SPDX-License-Identifier: MIT .\" SPDX-License-Identifier: MIT
.Dd January 21, 2024 .Dd April 20, 2024
.Dt NCDU 1 .Dt NCDU 1
.Os .Os
.Sh NAME .Sh NAME
@ -295,10 +295,7 @@ for a variation of the
color scheme that also works in terminals with a light background. color scheme that also works in terminals with a light background.
.Pp .Pp
The default is The default is
.Ar dark\-bg .Ar off .
unless the
.Ev NO_COLOR
environment variable is set.
.El .El
.Sh CONFIGURATION .Sh CONFIGURATION
.Nm .Nm

View file

@ -433,7 +433,6 @@ pub fn main() void {
config.thousands_sep = span; config.thousands_sep = span;
} }
} }
if (std.posix.getenvZ("NO_COLOR") == null) config.ui_color = .darkbg;
const loadConf = blk: { const loadConf = blk: {
var args = std.process.ArgIteratorPosix.init(); var args = std.process.ArgIteratorPosix.init();