diff --git a/src/GitPrompt.ps1 b/src/GitPrompt.ps1 index 6c50c95ef..3732831f3 100644 --- a/src/GitPrompt.ps1 +++ b/src/GitPrompt.ps1 @@ -132,7 +132,7 @@ if (Get-Module NuGet) { function Write-Prompt($Object, $ForegroundColor = $null, $BackgroundColor = $null) { $s = $global:GitPromptSettings - if ($s -and !$ForegroundColor) { + if ($s -and ($null -eq $ForegroundColor)) { $ForegroundColor = $s.DefaultForegroundColor }