From ba97011bbccc0ce4d30c663c67dcb81e0fe0a8f3 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Sun, 6 Nov 2022 23:19:01 +0330 Subject: [PATCH] changes to letter casing in variable --- vendor/profile.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/profile.ps1 b/vendor/profile.ps1 index 9d1f19b..9e26249 100644 --- a/vendor/profile.ps1 +++ b/vendor/profile.ps1 @@ -196,16 +196,16 @@ if ( $(Get-Command prompt).Definition -match 'PS \$\(\$executionContext.SessionS #> [ScriptBlock]$Prompt = { $lastSUCCESS = $? - $realLASTEXITCODE = $LASTEXITCODE + $realLastExitCode = $LastExitCode $host.UI.RawUI.WindowTitle = Microsoft.PowerShell.Management\Split-Path $pwd.ProviderPath -Leaf Microsoft.PowerShell.Utility\Write-Host -NoNewline "$([char]0x200B)`r$([char]0x1B)[K" - if ($lastSUCCESS -or ($LASTEXITCODE -ne 0)) { + if ($lastSUCCESS -or ($LastExitCode -ne 0)) { Microsoft.PowerShell.Utility\Write-Host } PrePrompt | Microsoft.PowerShell.Utility\Write-Host -NoNewline CmderPrompt PostPrompt | Microsoft.PowerShell.Utility\Write-Host -NoNewline - $global:LASTEXITCODE = $realLASTEXITCODE + $global:LastExitCode = $realLastExitCode return " " }