From ea9490c72dc0f11afa3fde76dc49061992e197b1 Mon Sep 17 00:00:00 2001 From: Jake Boeckerman Date: Thu, 12 Dec 2024 12:32:12 -0700 Subject: [PATCH] a little better filtering for these vars (allow looking for *everything* under a prefix) --- custom/jake.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom/jake.bash b/custom/jake.bash index 26065d8a1c..9781769212 100644 --- a/custom/jake.bash +++ b/custom/jake.bash @@ -152,8 +152,8 @@ function vars { # Specifically, .*THEME.* eats the ignore_ variables, because it matches itself in the value # TODO: it'd be nice to give these good names. Mostly thinking of this color regex ignore_list=(BASH_ALIASES LS_COLORS SDKMAN_CANDIDATES SDKMAN_CANDIDATES_CSV) - ignore_list+=("sdkman_.+" "SCM_.+" "SDKMAN_.+" "THEME_.+" "BASH_IT_L(OAD|OG)_.+" "_.+(any underscore variables)*") - ignore_list+=("[^=]+_THEME_.+") + ignore_list+=("sdkman_" "SCM_.*" "SDKMAN_.*" "THEME_.*" "BASH_IT_L(OAD|OG)_.*" "_.+(any underscore variables)*") + ignore_list+=("[^=]+_THEME_.*") ignore_list+=("ignore_(list|regex)") ignore_list+=("(echo_|)(normal|reset_color|(background_|bold_|underline_|)(black|blue|cyan|green|orange|purple|red|white|yellow))") # Using IFS to join ignore_list with a single-character delimiter, from: