Skip to content
This repository
Browse code

Add default for Write-Prompt -BackgroundColor

  • Loading branch information...
commit 82d3c7e5b63f7fa24330367efb70dd1380b630da 1 parent d6c1737
Keith Dahlby authored October 26, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  GitPrompt.ps1
2  GitPrompt.ps1
@@ -49,7 +49,7 @@ $global:GitPromptSettings = New-Object PSObject -Property @{
49 49
     Debug                     = $false
50 50
 }
51 51
 
52  
-function Write-Prompt($Object, $ForegroundColor, $BackgroundColor) {
  52
+function Write-Prompt($Object, $ForegroundColor, $BackgroundColor = -1) {
53 53
     if ($BackgroundColor -lt 0) {
54 54
         Write-Host $Object -NoNewLine -ForegroundColor $ForegroundColor
55 55
     } else {

0 notes on commit 82d3c7e

Please sign in to comment.
Something went wrong with that request. Please try again.