mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
33c40ebf39
commit
ab0a415a3b
|
@ -45,6 +45,7 @@ function Set-PoshPrompt {
|
||||||
|
|
||||||
[ScriptBlock]$Prompt = {
|
[ScriptBlock]$Prompt = {
|
||||||
$realLASTEXITCODE = $global:LASTEXITCODE
|
$realLASTEXITCODE = $global:LASTEXITCODE
|
||||||
|
Set-PoshContext
|
||||||
if ($realLASTEXITCODE -isnot [int]) {
|
if ($realLASTEXITCODE -isnot [int]) {
|
||||||
$realLASTEXITCODE = 0
|
$realLASTEXITCODE = 0
|
||||||
}
|
}
|
||||||
|
@ -62,7 +63,6 @@ function Set-PoshPrompt {
|
||||||
}
|
}
|
||||||
$process = New-Object System.Diagnostics.Process
|
$process = New-Object System.Diagnostics.Process
|
||||||
$process.StartInfo = $startInfo
|
$process.StartInfo = $startInfo
|
||||||
Set-PoshContext
|
|
||||||
$process.Start() | Out-Null
|
$process.Start() | Out-Null
|
||||||
$standardOut = $process.StandardOutput.ReadToEnd()
|
$standardOut = $process.StandardOutput.ReadToEnd()
|
||||||
$process.WaitForExit()
|
$process.WaitForExit()
|
||||||
|
|
Loading…
Reference in a new issue