summaryrefslogtreecommitdiff
path: root/lisp/progmodes/sh-script.el
diff options
context:
space:
mode:
authorDavide Masserut <dm@mssdvd.com>2022-04-06 11:37:38 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-04-06 11:38:08 +0200
commite32dcc752723cd255622fde73a324bdcb1e90664 (patch)
tree5ccc73757ca2bd6f258c8d8e26534762fecab250 /lisp/progmodes/sh-script.el
parent51a98a92e9f4c821ff838d823ce42ca12a4de4ca (diff)
downloademacs-e32dcc752723cd255622fde73a324bdcb1e90664.tar.gz
Add .bashrc detection to sh-mode
* lisp/progmodes/sh-script.el (sh-mode): Add .bashrc string-match (bug#54727).
Diffstat (limited to 'lisp/progmodes/sh-script.el')
-rw-r--r--lisp/progmodes/sh-script.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 8dc55621438..9151fd0a340 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -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")