Using ANSI escape codes in Powershell prompt to add color, looses meaning after executing some console processes, like git
Oh hey! I ran into this problem myself when I excitedly go into colorizing EVERYTHING with ANSI.
First of all, I took this (can't remember how I stumbled on it initially but many thanks to original coder) https://github.com/bozho/AnsiColorOut/blob/master/AnsiColorOut/Console.cs
Then in my profile I make sure to add it
Add-Type -Path C:\Users\audaxdreik\Documents\WindowsPowerShell\Console.cs
And then I create a quick custom wrapper in my profile for known problem programs that I use a lot, namely git
$gitPath = (Get-Command -Name git).Source
function git {
& $gitPath $args
[Bozho.PowerShell.Console]::EnableVirtualTerminalProcessing()
}