"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
我的问题是如何让 Github for Windows 的 bash shell 在 Console2 中打开?
Github for Windows 中没有简单的路径和可执行文件来设置 Shell 字段。你可以进入 Github for Windows 的选项中,并设置一个自定义程序,将它指向 Console2 ,像这样:
真正的诀窍是 Console2 设置中输入什么内容?在 Shell: 字段中输入什么内容才能在 Console2 中获取 bash shell?如果你查看选择了 bash shell 的 Github for Windows 的 shell 命令的目标,你会得到一些奇怪的东西:
C:\Users\10136196\AppData\Local\GitHub\GitHub.appref-ms --open-shell
这与 Github for Windows 使用的 Microsoft 一键安装功能有关,根据我的实验,它将无法在 Console2 设置的 Shell: 字段中工作。