]> git.eshelyaron.com Git - emacs.git/commitdiff
Add .bashrc detection to sh-mode
authorDavide Masserut <dm@mssdvd.com>
Wed, 6 Apr 2022 09:37:38 +0000 (11:37 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 6 Apr 2022 09:38:08 +0000 (11:38 +0200)
* lisp/progmodes/sh-script.el (sh-mode): Add .bashrc string-match
(bug#54727).

lisp/progmodes/sh-script.el

index 8dc55621438c5cea1654f1e4ea21f77ea9352502..9151fd0a340f32cd1caa637c479b303c57ac94c3 100644 (file)
@@ -1549,7 +1549,7 @@ with your script for an edit-interpret-debug cycle."
          ;; Checks that use `buffer-file-name' follow.
          ((string-match "\\.m?spec\\'" buffer-file-name) "rpm")
          ((string-match "[.]sh\\>"     buffer-file-name) "sh")
-         ((string-match "[.]bash\\>"   buffer-file-name) "bash")
+         ((string-match "[.]bash\\(rc\\)?\\>"   buffer-file-name) "bash")
          ((string-match "[.]ksh\\>"    buffer-file-name) "ksh")
          ((string-match "[.]mkshrc\\>" buffer-file-name) "mksh")
          ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh")