Why no yellow in powershell and posh git
It turns out PowerShell's console renders System.ConsoleColor.DarkYellow
as white:
[Enum]::GetValues([ConsoleColor]) | %{ Write-Host $_ -ForegroundColor $_ }
Using bold yellow
instead, which renders with System.ConsoleColor.Yellow
, works:
git log --pretty='%C(bold yellow)%h%Creset %s' --abbrev-commit