From d357f1673fecfadd96983c025057b63a3d3b45e0 Mon Sep 17 00:00:00 2001 From: throwaway-helix-zsh <117384672+throwaway-helix-zsh@users.noreply.github.com> Date: Fri, 4 Nov 2022 02:18:24 +0000 Subject: [PATCH] Use language=bash when shebang line uses zsh (#4582) This PR makes the editor use language=bash when the shebang line uses zsh. This is in the same line as using language=bash for zsh related file (~/.zshrc, ~/.zshenv etc.) as we already do. --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 94b3e75f3..071c2e40a 100644 --- a/languages.toml +++ b/languages.toml @@ -522,7 +522,7 @@ name = "bash" scope = "source.bash" injection-regex = "(shell|bash|zsh|sh)" file-types = ["sh", "bash", "zsh", ".bash_login", ".bash_logout", ".bash_profile", ".bashrc", ".profile", ".zshenv", ".zlogin", ".zlogout", ".zprofile", ".zshrc", "APKBUILD", "PKGBUILD", "eclass", "ebuild", "bazelrc"] -shebangs = ["sh", "bash", "dash"] +shebangs = ["sh", "bash", "dash", "zsh"] roots = [] comment-token = "#" language-server = { command = "bash-language-server", args = ["start"] }