Skip to content
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

Fix Prezto module loading order #87

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

brandon-fryslie
Copy link

@brandon-fryslie brandon-fryslie commented Jan 7, 2017

I found a relatively simple and succinct way to fix the module loading order problem.

Note that this will only work if zgen prezto is first in the list of commands, but if people put other modules first they are probably asking for trouble anyway.

Another issue is that I don't particularly like matching on the specific string 'prezto-master/init.zsh', but that seems unlikely to change, and if it does its a simple fix to change it to the correct name.

This does fix the module loading order problem by making sure all prezto modules are loaded before any other plugins that may depend on them, without overwriting functions and aliases set in other plugins.

@santiycr
Copy link

Thanks for the fix. This fixed issues where prezto default modules were overwriting my other plugins!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants