我设置Powershell_ISE以使用git.exe,Powershell可以工作,但Powershell_ISE似乎打破了暴露的格式转义:
C:\Users\rupert\projects\scratch [master]> git log --color --decorate --graph
* [33mcommit d628ab69ff7150f392fe548ecabbd8f5107dc2d1
[m[33m ([m[1;36mHEAD -> [m[1;32mmaster[m[33m)[m**
Author: Rupert <rupert@email.au>
Date: Tue Jun 6 18:58:02 2017 +1000
blank project
C:\Users\rupert\projects\scratch [master]> Get-PSReadlineOption
C:\Users\rupert\projects\scratch [master]> Get-PSReadlineOption -Verbose
C:\Users\rupert\projects\scratch [master]> git log --decorate --graph
* commit d628ab69ff7150f392fe548ecabbd8f5107dc2d1 (HEAD -> master)
Author: Rupert <rupert@email.au>
Date: Tue Jun 6 18:58:02 2017 +1000
blank project
我记得在SUSE linux实例中我需要更改LESS值。 ANSI color in git is not displayed correctly但它似乎是ISE和普通PowerShell之间的区别......