Skip to content

Enable plugin managers to set the Oh My Zsh requirements #12583

Open
@mcornella

Description

If the feature request is for a plugin or theme, specify it here.

No response

If the feature solves a problem you have, specify it here.

Our init script (oh-my-zsh.sh) does a bunch of initialization of required environment, variables and filesystem changes, but it also loads plugins, themes and has other custom logic.

This is why most plugin managers don't load the init script directly, as they do the second part themselves using internal optimized logic. However this has the intended side effect of not having the Oh My Zsh requirements necessary for most plugins, leading to issues such as #10581 (comment) or #12581.

This feature would enable plugin managers to load just the requirements for Oh My Zsh plugins.

Describe the proposed feature.

Separate the initialization logic between requirements and other initializations (plugins, theme, custom files, ...), ideally in separate files.

Then open separate PRs for all popular plugin managers to have that file loaded whenever an Oh My Zsh plugin or theme is loaded.

Describe alternatives you've considered

No response

Additional context

No response

Related Issues

Listed plugin managers:

  • antibody
  • antigen
  • antidote

Comment and +1 this message to add more plugin managers affected

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Area: coreIssue or PR related to core parts of the projectArea: initIssue or PR related to the initializerFeatureNew feature or requestTopic: plugin managerIssue or PR related to plugin managers (antigen, zplug, zgen, zpm, ...)

Type

No type

Projects

  • Status

    Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions