zgen icon indicating copy to clipboard operation
zgen copied to clipboard

Fix Prezto module loading order

Open brandon-fryslie opened this issue 8 years ago • 1 comments

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.

brandon-fryslie avatar Jan 07 '17 07:01 brandon-fryslie

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

santiycr avatar Nov 18 '17 06:11 santiycr