powershell-profile icon indicating copy to clipboard operation
powershell-profile copied to clipboard

Loading speed is too slow

Open breakTBB opened this issue 1 year ago • 1 comments

PowerShell 7.4.6 Profile is up to date. Checking for PowerShell updates... Your PowerShell is up to date. Use 'Show-Help' to display help Loading personal and system profiles took 5837ms.

how can we migrate this issue?

breakTBB avatar Nov 28 '24 13:11 breakTBB

Hello I found a solution. In the profile config (Microsoft.PowerShell_profile.ps1), remove the Get-Theme Function. This function makes it extra latency and open the profile.ps1 (Or use Edit-Profile function if using this profile) and add this oh-my-posh init pwsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/cobalt2.omp.json | Invoke-Expression That should fix it. I might make PR soon if no one else does. The only problem is that when you launch the profile it will replace the changes so to fix that, just delete the update check from likes 75-79. (Or comment) it

infstate avatar Dec 15 '24 00:12 infstate

Hello I found a solution. In the profile config (Microsoft.PowerShell_profile.ps1), remove the Get-Theme Function. This function makes it extra latency and open the profile.ps1 (Or use Edit-Profile function if using this profile) and add this oh-my-posh init pwsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/cobalt2.omp.json | Invoke-Expression That should fix it. I might make PR soon if no one else does. The only problem is that when you launch the profile it will replace the changes so to fix that, just delete the update check from likes 75-79. (Or comment) it

Went from 15000ms to 822. Thank you!

3dRikal avatar Jun 17 '25 17:06 3dRikal

Went from 15000ms to 822. Thank you!

stop using terminal fonts it'll decrease significantly. terminal fonts is not actively maintained.

fahim-ahmed05 avatar Jul 03 '25 15:07 fahim-ahmed05