让Windows 10的bash与console2一起使用

时间:2016-10-04 07:04:41

标签: bash windows-10 console2

我暂时重新安装了我的电脑,现在无法让它工作......我真的不记得上次我是如何工作的。但我看到了这个指南: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.

但我也可以正常地走这条道路。

1 个答案:

答案 0 :(得分:8)

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元素。