使用 power shell as git shell for Github Desktop 失去颜色
Lost color using power shell as git shell for Github Desktop
当我使用 power shell 作为我的 git shell for Github Desktop 时,有些颜色缺失,有些颜色没有问题。这是一个简短的列表:
- 还在
- 豪华-Git 相关
- 失踪
- cmdlet 颜色
- 可变颜色
有什么想法吗?
虽然@Mathias 没有直接解决我的问题,但他为我提供了最终解决问题的线索。
彩色变量功能由模块 PSReadLine
提供。在我的设备上,通常我会启动 64 位版本的 powershell,但不知何故 Github Desktop 选择启动 32 位 powershell 作为 git shell,甚至我自定义它以明确使用 64 位 powershell.exe。
最后我的解决办法是在32位powershell中安装PSReadLine
。在我的电脑上它位于 C:\Windows\SysWOW64\WindowsPowerShell\v1.0
,命令是 Install-Module PSReadline
.
当我使用 power shell 作为我的 git shell for Github Desktop 时,有些颜色缺失,有些颜色没有问题。这是一个简短的列表:
- 还在
- 豪华-Git 相关
- 失踪
- cmdlet 颜色
- 可变颜色
有什么想法吗?
虽然@Mathias 没有直接解决我的问题,但他为我提供了最终解决问题的线索。
彩色变量功能由模块 PSReadLine
提供。在我的设备上,通常我会启动 64 位版本的 powershell,但不知何故 Github Desktop 选择启动 32 位 powershell 作为 git shell,甚至我自定义它以明确使用 64 位 powershell.exe。
最后我的解决办法是在32位powershell中安装PSReadLine
。在我的电脑上它位于 C:\Windows\SysWOW64\WindowsPowerShell\v1.0
,命令是 Install-Module PSReadline
.