From a8a24b5be7f8cb6741f28000ae34c5b39ad9644e Mon Sep 17 00:00:00 2001 From: Michihito Shigemura Date: Tue, 20 Dec 2016 21:12:35 +0900 Subject: [PATCH] Add zshrc and zshenv detection to sh-mode (bug#25217) * lisp/progmodes/sh-script.el (sh-mode): Add zsh string-match Copyright-paperwork-exempt: yes --- lisp/progmodes/sh-script.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 5d362e42c30..a2c869de879 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -1683,6 +1683,7 @@ with your script for an edit-interpret-debug cycle." ((string-match "[.]bash\\>" buffer-file-name) "bash") ((string-match "[.]ksh\\>" buffer-file-name) "ksh") ((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") (t sh-shell-file)) nil nil) -- 2.39.2