prezto-inactive-community-fork / prezto

THIS FORK HAS SHUT DOWN – use the original!
https://github.com/sorin-ionescu/prezto
MIT License
115 stars 18 forks source link

Allow setting ZPREZTODIR to make prezto easier to integrate with #54

Closed belak closed 7 years ago

belak commented 7 years ago

This is arguably an annoying hack, but it lets the maintainers of antigen remove a bunch of weirdness which makes sure zprezto is in a folder named .zprezto and changing the ZDOTDIR at runtime to make loading this possible.

Obviously the name of the variable can be changed to whatever.

paulmelnikow commented 7 years ago

Thanks for opening this.

For background, antigen is a plugin loader that (among other things) lets non-Prezto users easily load plugins from the Prezto repo. Because our module loader hard-codes .zprezto, Antigen must special case Prezto installation, and temporarily override ZDOTDIR when loading plugins. Prezto shouldn't be so fussy. This is an easy fix so that we don't have to be installed in a .zprezto folder.

paulmelnikow commented 7 years ago

Would be great to have some people test this.

facastagnini commented 7 years ago

Thanks for your contribution @belak