dahlbyk / posh-git

A PowerShell environment for Git
http://dahlbyk.github.io/posh-git/
MIT License
7.7k stars 801 forks source link

Importing posh-git within the Visual Studio 2019 Developer PowerShell is very slow #826

Open RedX2501 opened 3 years ago

RedX2501 commented 3 years ago

System Details

Issue Description

I have posh-git to import in my profile file. This file is also executed when opening the Developer Powershell for VS 2019.

When opening a regular powershell importing the module takes about 1 second. When importing the module within the Developer Powershell it takes about 6 seconds. I measured using measure-command { import-module posh-git -minimumversion 1.0 }

I'm not sure where that comes from.

Can anyone else reproduce this?

dahlbyk commented 2 years ago

Is this still an issue for you?