Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading speed is too slow #123

Open
breakTBB opened this issue Nov 28, 2024 · 1 comment
Open

Loading speed is too slow #123

breakTBB opened this issue Nov 28, 2024 · 1 comment

Comments

@breakTBB
Copy link

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?

@infstate
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants