Skip to content

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

Description

@mcornella

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

  1. added
    FeatureNew feature or request
    Area: coreIssue or PR related to core parts of the project
    Area: initIssue or PR related to the initializer
    Topic: plugin managerIssue or PR related to plugin managers (antigen, zplug, zgen, zpm, ...)
    on Jul 27, 2024
  2. self-assigned this
    on Jul 27, 2024
  3. Joniator commented on Oct 5, 2024

    @Joniator

    I just ran into problems with my long working antidote setup.

    I've been using ohmyzsh/ohmyzsh path:lib and ohmyzsh/ohmyzsh path:plugin/git for years, and a recent fresh install broke it, with command not found: compdef errors when launching the shell.

    Adding getantidote/use-omz into andidotes plugins fixed all my errors again, as omz is supported according to antigens docs

    I'm not sure if this is related, or if antidote worked with you on this, but sounds like they may have a solution to this problem, so maybe this info helps.

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

Metadata

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

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions