powershell-profile
powershell-profile copied to clipboard
Loading speed is too slow
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?
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
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-ExpressionThat 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!
Went from 15000ms to 822. Thank you!
stop using terminal fonts it'll decrease significantly. terminal fonts is not actively maintained.