summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-15 01:44:25 -0500
committerJune McEnroe <june@causal.agency>2019-12-15 01:44:25 -0500
commit64a1d7e0ef9b39edae1b57c37a0e72c6644b50c9 (patch)
tree8f1897852319119ee7131b886e4a9b9f569da8e2 /bin
parentAdd Exit Strategy (diff)
downloadsrc-64a1d7e0ef9b39edae1b57c37a0e72c6644b50c9.tar.gz
src-64a1d7e0ef9b39edae1b57c37a0e72c6644b50c9.zip
Match .profile and .shrc as shell in hi
Diffstat (limited to 'bin')
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index d2491701..ec1a85ee 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -286,7 +286,7 @@ static const struct Language {
 	{ "make", "[.]mk$|^Makefile$", MakeSyntax, ARRAY_LEN(MakeSyntax) },
 	{ "mdoc", "[.][1-9]$", MdocSyntax, ARRAY_LEN(MdocSyntax) },
 	{ "rust", "[.]rs$", RustSyntax, ARRAY_LEN(RustSyntax) },
-	{ "sh",   "[.]sh$", ShSyntax, ARRAY_LEN(ShSyntax) },
+	{ "sh",   "[.]sh$|^[.](profile|shrc)$", ShSyntax, ARRAY_LEN(ShSyntax) },
 	{ "text", "[.]txt$", NULL, 0 },
 };