Skip to content

Commit 016d981

Browse files
fix(pwsh): invoke module support before context
relates to #655
1 parent 52f260c commit 016d981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init/omp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function global:Initialize-ModuleSupport {
5454
#store the last exit code for restore
5555
$realLASTEXITCODE = $global:LASTEXITCODE
5656
$errorCode = 0
57+
Initialize-ModuleSupport
5758
Set-PoshContext
5859
if ($lastCommandSuccess -eq $false) {
5960
#native app exit code
@@ -80,7 +81,6 @@ function global:Initialize-ModuleSupport {
8081
$executionTime = ($history.EndExecutionTime - $history.StartExecutionTime).TotalMilliseconds
8182
$global:omp_lastHistoryId = $history.Id
8283
}
83-
Initialize-ModuleSupport
8484
$omp = "::OMP::"
8585
$config = $global:PoshSettings.Theme
8686
$cleanPWD = $PWD.ProviderPath.TrimEnd("\")

0 commit comments

Comments
 (0)