我最近重置了我的电脑,但现在无法让它工作。我真的不记得上次我是如何让它工作的。但我看到了这个指南:http://sean-bedford.com/console2-bash/
但是当我尝试将 shell 更改为:
C:\windows\System32\cmd.exe /c "c:\windows\system32\bash.exe"
我无法启动 console2。
如果我尝试在 run
(WIN+R) 中运行路径,一切正常。
如果我将 /c
更改为 /k
然后我可以运行它但是出现了:
'c:\windows\system32\bash.exe' is not recognized as an internal or external command,
operable program or batch file.
但我也可以正常运行该路径。
最佳答案
Windows 上的 Bash 是一个 64 位应用程序。如果您有 32 位 Console2,只需下载 64 位版本。
https://sourceforge.net/projects/console/files/console-devel/2.00/
而且,对于 64 位 Console2,您不需要用 cmd.exe 包装 bash.exe
只需将控制台设置中的 Shell 字段设置为:C:\windows\system32\bash.exe ~
或者,如果您使用 console.xml 文件进行配置,请将 shell="C:\windows\system32\bash.exe ~"
属性添加到 console
元素。
关于bash - 让 Windows 10 的 bash 与 console2 一起工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39846126/