diff --git a/src/log.c b/src/log.c index 34f11f19..22fe8f7d 100644 --- a/src/log.c +++ b/src/log.c @@ -506,6 +506,9 @@ log_set_file(struct workspace *wk, FILE *log_file) log_cfg.tstr = 0; log_cfg.tstr_wk = 0; log_cfg.file_is_a_tty = log_file && fs_is_a_tty(wk, log_file); + if (getenv("CLICOLOR_FORCE") != NULL) { + log_cfg.file_is_a_tty = true; + } } void