让Windows 10中的Bash与Console2配合使用

3
我最近重置了我的电脑,现在无法让它正常工作。我不太记得上次如何使它工作的。但我看到了这篇指南:http://sean-bedford.com/console2-bash/ 但是,当我试图更改我的 shell 为:
C:\windows\System32\cmd.exe /c "c:\windows\system32\bash.exe"

我无法启动console2。

如果我尝试在“运行”中输入路径(WIN+R),一切正常。

如果我将/c更改为/k,那么我可以运行它,但是会出现以下内容:

'c:\windows\system32\bash.exe' is not recognized as an internal or external command,
operable program or batch file.

但我也可以正常地运行该路径。

1个回答

8

Bash on Windows是一个64位应用程序。如果你安装的是32位Console2,请下载64位版本。

https://sourceforge.net/projects/console/files/console-devel/2.00/

同时,使用64位Console2时,不需要使用cmd.exe来包装bash.exe。

只需将Shell字段设置为Console设置中的:C:\windows\system32\bash.exe ~

或者,如果你通过console.xml文件进行配置,请在console元素上添加shell="C:\windows\system32\bash.exe ~"属性。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接