-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
add ZSH_MODULE_PATH to customize module path when zmodload #4547
Conversation
This sounds like a broken |
My situation may be not that common. We have zsh built at build machines with some dir generated by rules, deploy to my box and create same symlinks so I can get the latest version of built zsh. Every time I got a new built, check_for_upgrade will fail and complain about not found datetime module since the new zsh has a different install dir setup. This happens even I set module_path to symlink one since zsh will only look for the build time one (-f) and not from this env var when invoke zmodload within script. After digging around, there is another potential solution: PS, from http://zsh.sourceforge.net/Guide/zshguide02.html |
This really sounds like your build system is producing broken If you must customize
As far as removing the |
Thanks for your opinion. I agree that the original pull request is not a good solution. I do think remove -f is reasonable which will give user ability to customize certain things. If remove -f is too risky, we can add a flag to allow users to toggle this behavior. By default, OMZ will continue use -f and with flag on, it will run without -f. Does this approach make sense to you? |
I think I understand where you're coming from. But, no offense, I think that's a bad idea. Introducing that low-level variability complicates the OMZ scripts. As far as I can tell from the Zsh documentation and mailing lists, the baseline of a working Doing this change also implies that your setup is an "okay" or supported |
Got it. Thanks for your time. I know my use case is not that common and I'll see if I can change on our side |
Cool. Feel free to ping me if you'd like to discuss your build process. I've done versioned zsh builds before (mostly on OS X) and may be able to assist. |
This will allow oh-my-zsh still works when modules are moved to other place instead of path from compile time config