bash - 让 Windows 10 的 bash 与 console2 一起工作

标签 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.

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

最佳答案

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/

相关文章:

linux - 将尾部输出通过管道传输到当前正在运行的 bash 脚本

linux - 如何让Supervisord读取bash环境变量

asp.net - 如何在 Windows 10 上的 IIS 10 中运行 ASP.NET MVC 应用程序

powershell - 设置 PowerShell posh-git 的 WindowTitle - 转义连字符?

visual-studio - 使用 Console2 进行 Visual Studio 调试?

mysql - Cron Bash - 从两个 MySQL 表中选择数据并导出到 CSV

docker - 在Norton中进行哪些更改以允许Docker共享驱动器D

windows-10 - 任务计划程序显示错误 "The specified query is invalid"

python - 使用 Python 列出命令的输出