From 18e086d8c03e94e780e4f9c98805648333f0be10 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 8 Apr 2016 16:15:00 -0400 Subject: [PATCH] sh: detect *.(ba|z)sh$ --- modules/module-sh.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/module-sh.el b/modules/module-sh.el index 691cd06b6..7038ca99c 100644 --- a/modules/module-sh.el +++ b/modules/module-sh.el @@ -5,7 +5,8 @@ :config (setq company-shell-delete-duplicates t)) -(associate! sh-mode :match "/\\.?z\\(sh/.*\\|profile\\|login\\|logout\\|shrc\\|shenv\\)$") +(associate! sh-mode :match "\\.\\(ba\\|z\\)sh$") +(associate! sh-mode :match "/\\.?z\\(sh\\(/.*\\|$\\)\\|profile\\|login\\|logout\\|shrc\\|shenv\\)$") (associate! sh-mode :match "/\\.?bash\\(/.*\\|rc\\|_profile\\)$") (after! sh-script (add-hook 'sh-mode-hook 'flycheck-mode)