Skip to content

Commit

Permalink
add workaround for microsoft/terminal#32
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanVSO committed Mar 5, 2022
1 parent 9990e41 commit 5561087
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
else {
$pwd.Path
}
$PSStyle.Bold + $path + $PSStyle.BoldOff
$PSStyle.FileInfo.Directory + $PSStyle.Bold + $path + $PSStyle.Reset + " "
}
{
if (-not (test-path .\.git)) { return; }
Expand All @@ -38,16 +38,16 @@
# we're probably in detached HEAD state, so print the SHA
$branch = git rev-parse --short HEAD
if ($null -eq $branch) { throw }
" $($PSStyle.Foreground.Red)($branch)$($PSStyle.Reset)"
"$($PSStyle.Foreground.Red)($branch)$($PSStyle.Reset)"
}
else {
# we're on an actual branch, so print it
" $($PSStyle.Foreground.BrightBlue)($branch)$($PSStyle.Reset)"
"$($PSStyle.Foreground.BrightBlue)($branch)$($PSStyle.Reset)"
}
}
catch {
# we'll end up here if we're in a newly initiated git repo
" $($PSStyle.Foreground.Yellow)(no branches yet)$($PSStyle.Reset)"
"$($PSStyle.Foreground.Yellow)(no branches yet)$($PSStyle.Reset)"
}
}
{ "`n" }
Expand Down

0 comments on commit 5561087

Please sign in to comment.