]> git.eshelyaron.com Git - emacs.git/commitdiff
Recognize PKGBUILD as bash style
authorDavide Masserut <dm@mssdvd.com>
Tue, 20 Jun 2023 13:55:11 +0000 (15:55 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 1 Jul 2023 08:27:58 +0000 (11:27 +0300)
* lisp/progmodes/sh-script.el (sh--guess-shell): Handle PKGBUILD.
(Bug#64251)

lisp/progmodes/sh-script.el

index 6beff9f41e96a2d42af4fba7e33ecdc2970ccdbc..a305c35c5f8d00e1f2ffa5dfeb608251b8417e9e 100644 (file)
@@ -1489,6 +1489,7 @@ Return the name of the shell suitable for `sh-set-shell'."
         ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh")
         ((string-match "[.]zsh\\(rc\\|env\\)?\\>" buffer-file-name) "zsh")
        ((equal (file-name-nondirectory buffer-file-name) ".profile") "sh")
+       ((equal (file-name-nondirectory buffer-file-name) "PKGBUILD") "bash")
         (t sh-shell-file)))
 
 ;;;###autoload