From 5314b31b121615bf851b67dcc2669580d604e220 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 27 Dec 2024 07:16:53 -0600 Subject: [PATCH] update banner command to respect use_ansi_colors (#14684) # Description This PR goes along with the recent changes by @cptpiepmatz for [auto-color](https://github.com/nushell/nushell/pull/14647) and [evaluation of auto-color](https://github.com/nushell/nushell/pull/14683) which also looks at env vars along with config settings to determine when it's appropriate to show ansi coloring since it's more complicated than just reading a setting or an env var. # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-std/std/core/mod.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-std/std/core/mod.nu b/crates/nu-std/std/core/mod.nu index 21c30ca318..5ac804da5b 100644 --- a/crates/nu-std/std/core/mod.nu +++ b/crates/nu-std/std/core/mod.nu @@ -30,7 +30,7 @@ It's been this long since (ansi green)Nushell(ansi reset)'s first commit: " } -match $env.config?.use_ansi_coloring? { +match (config use-colors) { false => { $banner_msg | ansi strip } _ => $banner_msg }