sh: detect *.(ba|z)sh$

This commit is contained in:
Henrik Lissner 2016-04-08 16:15:00 -04:00
parent 54b32b58da
commit 18e086d8c0

View File

@ -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)