Superslow module load after updating PowerShell to 7.5
Afte having upgraded to PowerShell 7.5, this module takes over 4.5 seconds to start:
Days : 0 Hours : 0 Minutes : 0 Seconds : 4 Milliseconds : 435 Ticks : 44350355 TotalDays : 5.13314293981481E-05 TotalHours : 0.00123195430555556 TotalMinutes : 0.0739172583333333 TotalSeconds : 4.4350355 TotalMilliseconds : 4435.0355
Please let me know how can I provide you further details in case you need it.
I'm experiencing the same issue. I have only installed the oh-my-posh and terminal-icons, and the profile loads in about 9 seconds. If I disable the terminal-icons, my terminal opens instantly.
I was pulling my hair out over the same issue! As temporary workaround, I commented out the Import-Module -Name Terminal-Icons and put this at the very top of my Microsoft.PowerShell_profile.ps1
Register-EngineEvent -SourceIdentifier 'PowerShell.OnIdle' -MaxTriggerCount 1 -Action {
Import-Module -Name Terminal-Icons -Global
} | Out-Null
I was pulling my hair out over the same issue! As temporary workaround, I commented out the
Import-Module -Name Terminal-Iconsand put this at the very top of myMicrosoft.PowerShell_profile.ps1Register-EngineEvent -SourceIdentifier 'PowerShell.OnIdle' -MaxTriggerCount 1 -Action { Import-Module -Name Terminal-Icons -Global } | Out-Null
I did the same at the beginning, but at the moment, I ended up to call the module on demand.
I was pulling my hair out over the same issue! As temporary workaround, I commented out the
Import-Module -Name Terminal-Iconsand put this at the very top of myMicrosoft.PowerShell_profile.ps1Register-EngineEvent -SourceIdentifier 'PowerShell.OnIdle' -MaxTriggerCount 1 -Action { Import-Module -Name Terminal-Icons -Global } | Out-Null
This temporary solution works as of now. Thanks!
¡Me estaba tirando de los pelos por el mismo problema! Como solución temporal, comenté el
Import-Module -Name Terminal-Iconsy puse esto en la parte superior de miMicrosoft.PowerShell_profile.ps1Register-EngineEvent -SourceIdentifier 'PowerShell.OnIdle' -MaxTriggerCount 1 -Action { Import-Module -Name Terminal-Icons -Global } | Out-Null
I went from 900ms to 256ms, thanks for providing a solution.