From 51491c3c08a23e5b1f0a9961e6e8a1c544fd18b2 Mon Sep 17 00:00:00 2001 From: Adam Gaskins Date: Mon, 7 Apr 2025 17:11:59 -0400 Subject: [PATCH 1/3] Fix syntax highlighting for bash/zsh --- .../builtins/unix-family/50-shell.toml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/syntax_mapping/builtins/unix-family/50-shell.toml b/src/syntax_mapping/builtins/unix-family/50-shell.toml index d015ca81..cd59a84e 100644 --- a/src/syntax_mapping/builtins/unix-family/50-shell.toml +++ b/src/syntax_mapping/builtins/unix-family/50-shell.toml @@ -2,4 +2,24 @@ "Bourne Again Shell (bash)" = [ # used by lots of shells "/etc/profile", + + "bashrc", + "*.bashrc", + "bash_profile", + "*.bash_profile", + "bash_login", + "*.bash_login", + "bash_logout", + "*.bash_logout", + + "zshrc", + "*.zshrc", + "zprofile", + "*.zprofile", + "zlogin", + "*.zlogin", + "zlogout", + "*.zlogout", + "zshenv", + "*.zshenv" ] From c4c919aa31316a5084d17bb92a2d5c6fce8bce72 Mon Sep 17 00:00:00 2001 From: Adam Gaskins Date: Mon, 7 Apr 2025 17:11:59 -0400 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a8409fb..ba027663 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Prevent `--list-themes` from outputting default theme info to stdout when it is piped, see #3189 (@einfachIrgendwer0815) - Rename some submodules to fix Dependabot submodule updates, see issue #3198 and PR #3201 (@victor-gp) - Make highlight tests fail when new syntaxes don't have fixtures PR #3255 (@dan-hipschman) +- Fix bash/zsh file highlighting, see PR #3262 (@AdamGaskins) ## Other From e761d795129e609764c156480bcaa492f5872f97 Mon Sep 17 00:00:00 2001 From: Adam Gaskins Date: Sat, 12 Apr 2025 11:08:57 -0400 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Keith Hall --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba027663..d9ba1c57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ - Prevent `--list-themes` from outputting default theme info to stdout when it is piped, see #3189 (@einfachIrgendwer0815) - Rename some submodules to fix Dependabot submodule updates, see issue #3198 and PR #3201 (@victor-gp) - Make highlight tests fail when new syntaxes don't have fixtures PR #3255 (@dan-hipschman) -- Fix bash/zsh file highlighting, see PR #3262 (@AdamGaskins) +- Add missing mappings for various bash/zsh files, see PR #3262 (@AdamGaskins) ## Other