posh-git icon indicating copy to clipboard operation
posh-git copied to clipboard

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

Open RedX2501 opened this issue 3 years ago • 1 comments

System Details

  • posh-git version/path: 1.0.0 beta4 ~\Documents\WindowsPowerShell\Modules\posh-git\1.0.0
  • PowerShell version: 5.1.17763.1490
  • git version 2.28.0.windows.1
  • OS: Microsoft Windows NT 10.0.17763.0

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?

RedX2501 avatar Jan 13 '21 11:01 RedX2501

Is this still an issue for you?

dahlbyk avatar Apr 01 '22 19:04 dahlbyk