让 windows 10 的 bash 与 console2 一起工作
Getting windows 10's bash to work with 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.
但我也可以运行正常走那条路。
Bash on Windows 是 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
元素。
我最近重置了我的电脑,但现在无法让它工作。我真的不记得上次我是如何让它工作的。但是我看到了这个指南: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.
但我也可以运行正常走那条路。
Bash on Windows 是 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
元素。