I'm on Pwsh v7.3.7
- Installed as such:
Install-Module -Name 'lazy-posh-git' -AllowClobber
- Added this to my profile:
Import-Module 'lazy-posh-git -ArgumentList 'C:\Users\[username]\Documents\PowerShell\gitprompt.ps1'
- Used PSProfiler to measure my profile load time (Measure-Script):

You can see that posh-git is still loading at launch. If I comment out posh-git entirely, nothing works and I get no prompt in git repositories.
Am I doing things incorrectly?
I'm on Pwsh
v7.3.7Install-Module -Name 'lazy-posh-git' -AllowClobberImport-Module 'lazy-posh-git -ArgumentList 'C:\Users\[username]\Documents\PowerShell\gitprompt.ps1'You can see that posh-git is still loading at launch. If I comment out posh-git entirely, nothing works and I get no prompt in git repositories.
Am I doing things incorrectly?