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))