From ae95b9e8d5384bcb9032e65741f347c0e9d12b24 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 25 May 2018 00:52:37 +0200 Subject: [PATCH] lang/sh: improve zsh shebang detection regexp --- modules/lang/sh/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/sh/config.el b/modules/lang/sh/config.el index 21444fb91..d705509da 100644 --- a/modules/lang/sh/config.el +++ b/modules/lang/sh/config.el @@ -50,7 +50,7 @@ (string-match-p "\\.zsh\\'" buffer-file-name)) (save-excursion (goto-char (point-min)) - (looking-at-p "^#!.+zsh[$\\s-]"))) + (looking-at-p "^#!.+/zsh[$ ]"))) (sh-set-shell "zsh"))) (add-hook 'sh-mode-hook #'+sh|detect-zsh))