我試過,但出現錯誤:工藝外殼,代碼255異常退出 主要是想爲這個SSH,避免Cygwin的或砰砰/膩子。是不是可以使用Windows Bash作爲shell在Emacs中用於ssh等?
我有這樣的配置:
(setq explicit-shell-file-name "C:\\Windows\\System32\\bash.exe")
(setq explicit-bash.exe-args '("--noediting" "--login" "-i"))
(setenv "SHELL" shell-file-name)
(add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)
謝謝
請在Ubuntu的頭腦擊在Windows [是** **測試技術(https://msdn.microsoft.com/en-us/commandline/wsl/about)。根據[這篇博文](https://blogs.msdn.microsoft.com/wsl/2016/10/19/windows-and-ubuntu-interoperability/)Windows和Linux軟件之間的I/O重定向將「很快「,這是大約四個月前,所以也許它已經在Windows內部人員版本中可用。 –