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

Default loading of prezto modules breaks prezto docs #118

Open
alextes opened this issue Dec 29, 2018 · 0 comments
Open

Default loading of prezto modules breaks prezto docs #118

alextes opened this issue Dec 29, 2018 · 0 comments

Comments

@alextes
Copy link

alextes commented Dec 29, 2018

The ZGEN_PREZTO_LOAD_DEFAULT is pretty nice, still, it took me a while to figure out that the reason why prezto wasn't coloring output had to do with zgen loading modules by default. Prezto looks for dircolors which on macOS is gdircolors, prezto warns you about, and suggests you use the gnu-utility module with the option: zstyle ':prezto:module:gnu-utility' 'prefix' 'g', and load the module before the utility module. Even though I did, after some debugging I found out utility was still loading before gnu-utility. The reason? zgen adds default modules which include utility and prezto skips utilities that are already loaded.

Since I imagine most macOS users would like ls coloring, and most macOS users don't force brew to replace core utils with GNUs versions for potential system instability problem, I think zgen's default behavior is problematic here.

How about we make default modules off by default? That would solve this issue entirely I imagine.

Related to #112

Thanks for an awesome utility 🙏 !

@alextes alextes changed the title Load order prezto modules Default loading of prezto modules invalidates prezto docs Dec 29, 2018
@alextes alextes changed the title Default loading of prezto modules invalidates prezto docs Default loading of prezto modules breaks prezto docs Dec 29, 2018
forivall pushed a commit to forivall/zgen that referenced this issue Aug 8, 2023
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

No branches or pull requests

1 participant