-
-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting variables without importing posh-git #635
Comments
When I measure Unfortunately, what you're asking for will not work atm. Before we come up with yet another way to provide settings, I'd like to see if we can improve the module load time. |
Yes it's about 1 second, which substantially slows down loading the already slow to start pwsh v6 shell. I'm running the latest version of posh git available from the gallery. |
There are two "latest" available. Which one you got depends on whether or not you used the |
|
I have a PR pending that I think should help shave ~.5 secs off the load time on pwsh. Hopefully I can get the PR merged for the next beta. |
any progress? |
That PR made it into the current beta. It improved load time a little. There is another PR (#698) that is attempting to re-write our PSM1 file at build-time with all the dot-source files embedded into it (rather than dot-sourcing them). That is supposed to speed up load time a bit more. |
Good to know. Yes powershell startup times are still a big problem for me. Any improvements here would for sure be welcome. Thanks for your work. |
any status update here? |
No progress on this particular issue. I'd rather atm focus on making the module import faster. In particular, we have a catch 22 situation here where you can't set the settings which is based on the type |
@musm I'm curious how you auto load the module in a git directory. The time it takes to initialize the module is just too long. Sometimes it takes 5+ seconds for me. I've been using 1.0.0. Just updated to 1.1.0. |
I am using posh-git and it auto loads when entering a directory that is using git.
I'd like to customize several module variables, without having to import the module in my profile since this drastically slows down starting powershell.
Is this possible?
Thanks.
The text was updated successfully, but these errors were encountered: