mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
parent
edebc1d465
commit
f6501aeb51
|
@ -47,7 +47,8 @@ function global:Set-PoshGitStatus {
|
||||||
$standardOut = @(&$omp "--config=$config" "--error=$errorCode" "--pwd=$cleanPWD" "--pswd=$cleanPSWD" "--execution-time=$executionTime")
|
$standardOut = @(&$omp "--config=$config" "--error=$errorCode" "--pwd=$cleanPWD" "--pswd=$cleanPSWD" "--execution-time=$executionTime")
|
||||||
# Restore initial encoding
|
# Restore initial encoding
|
||||||
[Console]::OutputEncoding = $originalOutputEncoding
|
[Console]::OutputEncoding = $originalOutputEncoding
|
||||||
$standardOut
|
# the ouput can be multiline, joining these ensures proper rendering by adding line breaks with `n
|
||||||
|
$standardOut -join "`n"
|
||||||
Set-PoshGitStatus
|
Set-PoshGitStatus
|
||||||
$global:LASTEXITCODE = $realLASTEXITCODE
|
$global:LASTEXITCODE = $realLASTEXITCODE
|
||||||
#remove temp variables
|
#remove temp variables
|
||||||
|
|
Loading…
Reference in a new issue