Skip to content

Commit

Permalink
Changed variables, string concat to expansion.
Browse files Browse the repository at this point in the history
Added "File" prefix to (now) FileAddedText, FileModifiedText,
FileRemovedText, and FileConflictedText--before, LocalWorkingStatusSymbol
and ConflictedText had the same content by default ("!"), as did
LocalStagedStatusSymbol and ModifiedText ("~").

Changed prompt output of the above variables to use string expansion
rather than concatenation.

Also re-aligned several indentation blocks from 2-space to 4-space
indents. In my opinion, tabs help avoid these issues, but I'll defer to the
lead coder here.

Several lines had nothing but spaces on them, so I removed the spaces
(keeping the empty double line-break).
  • Loading branch information
Rebecca Turner committed May 5, 2016
1 parent 6c500d0 commit 59069a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GitPrompt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ $global:GitPromptSettings = New-Object PSObject -Property @{
AfterForegroundColor = [ConsoleColor]::Yellow
AfterBackgroundColor = $Host.UI.RawUI.BackgroundColor

FileAddedText = '+'
FileModifiedText = '~'
FileRemovedText = '-'
FileConflictedText = '!'
FileAddedText = '+'
FileModifiedText = '~'
FileRemovedText = '-'
FileConflictedText = '!'

LocalDefaultStatusSymbol = $null
LocalDefaultStatusForegroundColor = [ConsoleColor]::DarkGreen
Expand Down

0 comments on commit 59069a5

Please sign in to comment.