From a8c825a619d9e11ffd9df6a75d8076da67e23fd6 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Tue, 12 Sep 2017 18:13:42 +0200 Subject: [PATCH] =?UTF-8?q?[Shell]=20Set=20=E2=80=98shell-file-name?= =?UTF-8?q?=E2=80=99=20depending=20on=20system=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit More of this to follow --- init.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 12c9ac3..10a658a 100644 --- a/init.el +++ b/init.el @@ -343,6 +343,10 @@ (setq lisp-indent-function 'common-lisp-indent-function) +(setq shell-file-name (if (eq system-type 'windows-nt) + "C:/Programme/cygwin64/bin/bash.exe" + "/usr/bin/zsh")) + ;; * Basic Builtin Packages @@ -896,8 +900,7 @@ _h_ _l_ _o_k _y_ank (use-package term :commands (term-send-string) :config (progn - (setq explicit-shell-file-name "/usr/bin/zsh" - shell-file-name "/usr/bin/zsh") + (setq explicit-shell-file-name shell-file-name) (add-hook 'term-exec-hook ; oremacs.com (lambda ()