aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthrowaway-helix-zsh2022-11-04 02:18:24 +0000
committerGitHub2022-11-04 02:18:24 +0000
commitd357f1673fecfadd96983c025057b63a3d3b45e0 (patch)
tree103323a94dd0661c81c04ca5260f3b54484da4d6
parentc667ff8da3fa664c6fe37d2da8d9d22a4dd823e1 (diff)
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.
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 94b3e75f..071c2e40 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"] }