From e1818430b7a690487ce445cf6826bfeb4aeaffc8 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 20 Apr 2024 15:45:37 +0200 Subject: [PATCH] Set default --color to "off" --- ncdu.1 | 7 ++----- src/main.zig | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ncdu.1 b/ncdu.1 index cfadc8b..c605f8d 100644 --- a/ncdu.1 +++ b/ncdu.1 @@ -1,6 +1,6 @@ .\" SPDX-FileCopyrightText: Yoran Heling .\" SPDX-License-Identifier: MIT -.Dd January 21, 2024 +.Dd April 20, 2024 .Dt NCDU 1 .Os .Sh NAME @@ -295,10 +295,7 @@ for a variation of the color scheme that also works in terminals with a light background. .Pp The default is -.Ar dark\-bg -unless the -.Ev NO_COLOR -environment variable is set. +.Ar off . .El .Sh CONFIGURATION .Nm diff --git a/src/main.zig b/src/main.zig index 4ab196e..a281750 100644 --- a/src/main.zig +++ b/src/main.zig @@ -433,7 +433,6 @@ pub fn main() void { config.thousands_sep = span; } } - if (std.posix.getenvZ("NO_COLOR") == null) config.ui_color = .darkbg; const loadConf = blk: { var args = std.process.ArgIteratorPosix.init();