.emacs-my
changeset 1765 5cabf87dd450
parent 1762 a62145ae4fbd
child 1766 407c95f4887f
--- a/.emacs-my	Mon Nov 28 23:05:00 2022 +0200
+++ b/.emacs-my	Sat Dec 10 18:34:57 2022 +0200
@@ -571,7 +571,11 @@
 
 (cl-eval-when (compile) (require 'shell))
 
-(setq explicit-bash-args '("-i"))
+(setq explicit-bash-args
+      (if (eq system-type 'windows-nt)
+          ;; https://emacs.stackexchange.com/questions/71487/mingw-shell-in-emacs/
+          (list "--login")
+        (list "-i")))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "Cygwin, MSYS")