mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
parent
2aa00da41b
commit
07b9b82f9f
|
@ -67,6 +67,10 @@ function global:Initialize-ModuleSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
[ScriptBlock]$Prompt = {
|
[ScriptBlock]$Prompt = {
|
||||||
|
#store if the last command was successful
|
||||||
|
$lastCommandSuccess = $?
|
||||||
|
#store the last exit code for restore
|
||||||
|
$realLASTEXITCODE = $global:LASTEXITCODE
|
||||||
$omp = "::OMP::"
|
$omp = "::OMP::"
|
||||||
$config, $cleanPWD, $cleanPSWD = Get-PoshContext
|
$config, $cleanPWD, $cleanPSWD = Get-PoshContext
|
||||||
if ($global:PoshSettings.Transient -eq $true) {
|
if ($global:PoshSettings.Transient -eq $true) {
|
||||||
|
@ -75,10 +79,6 @@ function global:Initialize-ModuleSupport {
|
||||||
$global:PoshSettings.Transient = $false
|
$global:PoshSettings.Transient = $false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
#store if the last command was successful
|
|
||||||
$lastCommandSuccess = $?
|
|
||||||
#store the last exit code for restore
|
|
||||||
$realLASTEXITCODE = $global:LASTEXITCODE
|
|
||||||
$errorCode = 0
|
$errorCode = 0
|
||||||
Initialize-ModuleSupport
|
Initialize-ModuleSupport
|
||||||
Set-PoshContext
|
Set-PoshContext
|
||||||
|
|
Loading…
Reference in a new issue