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

Disable everything except tab completion

Open 3N4N opened this issue 2 years ago • 3 comments

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?

3N4N avatar Oct 14 '22 02:10 3N4N

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:

  • https://github.com/DominikJaniec/posh-git/tree/feature/no-prompt

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

DominikJaniec avatar Feb 20 '23 22:02 DominikJaniec

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.

3N4N avatar Mar 04 '23 08:03 3N4N

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 😉

DominikJaniec avatar Mar 05 '23 16:03 DominikJaniec