On windows I have set (setq explicit-shell-file-name "c:/Program Files/Git/bin/bash.exe")
to use git-bash for e.g. M-x shell
. In compilation mode however, the standard windows console still seems to be used, as far as I can tell. Can this be changed somehow?
FWIW, I'm actually using projectile-run-project to trigger compilation in this particular scenario.
One possible solution is to place (projectile-project-run-cmd . "\"c:/Program Files/Git/bin/bash.exe\" build_and_run.sh")
in .dir-locals.el
, but then I cannot use the same dir-locals on linux. It is important that the output of build_and_run.sh
is displayed in compilation-mode, because it might contain links with build errors.
explicit-shell-file-name
is only forM-x shell
. Does it work to setshell-file-name
instead?A path separator must be exactly one byte, but the given separator is 21 bytes: C:/Program Files/Git/ In some shells on Windows '/' is automatically expanded. Use '//' instead.
sh.exe
as the custom shell incompilation-mode
. I have never used projectile.