dahlbyk / posh-git

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

Disable everything except tab completion #927

Open 3N4N opened 1 year ago

3N4N commented 1 year ago

Because of posh-git pwsh takes 818ms to start whereas normally it takes about 500ms. I only use it for tab completion and am thinking if the other whistles are disabled then it should load faster.

How do I disable everything except tab-completion?

DominikJaniec commented 1 year ago

If anyone is interested in such feature, I've explored that possibility at my fork, which I would like to bring here too in some near feature with #948:

I didn't test it much, but it's starting faster, and as far as I've tried, it works 🐱‍💻

3N4N commented 1 year ago

Wish the devs and the users were more active. Is there any other git-related module powershell users use? Cause the startup lag for posh-git must be unbearable for the users to use it without issue.

DominikJaniec commented 1 year ago

That's true, the whole PowerShell startup is very slow 😕 However, I'm kind of passing by that issue, with something like "startup-log", which tricks my brain to not feel the pain: image

Also, I'm trying to not use "my-fancy-profile" when I'm not needed it, like within VS Code, or while running some scripts 😉