]> git.eshelyaron.com Git - emacs.git/commitdiff
Add zshrc and zshenv detection to sh-mode (bug#25217)
authorMichihito Shigemura <m_shigemura@shigemk2.com>
Tue, 20 Dec 2016 12:12:35 +0000 (21:12 +0900)
committerAlan Third <alan@idiocy.org>
Sun, 25 Dec 2016 19:51:53 +0000 (19:51 +0000)
* lisp/progmodes/sh-script.el (sh-mode): Add zsh string-match

Copyright-paperwork-exempt: yes

lisp/progmodes/sh-script.el

index 5d362e42c308c79b8d561db683eaa66beeb271ab..a2c869de87938bf9f96544d7621f2f0b5c0d2691 100644 (file)
@@ -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)