Skip to content

Commit

Permalink
a little better filtering for these vars (allow looking for *everythi…
Browse files Browse the repository at this point in the history
…ng* under a prefix)
  • Loading branch information
jakebman committed Dec 12, 2024
1 parent 6a3a27c commit ea9490c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom/jake.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ea9490c

Please sign in to comment.