1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-14 10:51:20 -07:00

* lisp/files.el (auto-mode-alist): Recognize /etc/profile as sh.

This commit is contained in:
shynur 2026-03-07 13:50:16 +08:00 committed by Sean Whitton
parent 618653aed0
commit 39cdf4726c

View file

@ -3114,6 +3114,8 @@ since only a single case-insensitive search through the alist is made."
;; Bash builtin 'fc' creates a temp file named "bash-fc.XXXXXX"
;; to edit shell commands from its history list.
("/bash-fc\\.[0-9A-Za-z]\\{6\\}\\'" . sh-mode)
;; A login sh first attempts to read /etc/profile.
("\\`/etc/profile\\'" . sh-mode)
("/PKGBUILD\\'" . sh-mode)
("\\(/\\|\\`\\)\\.\\(bash_\\(profile\\|history\\|log\\(in\\|out\\)\\)\\|z?log\\(in\\|out\\)\\)\\'" . sh-mode)
("\\(/\\|\\`\\)\\.\\(shrc\\|zshrc\\|m?kshrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode)