Skip to content

Prezto module load order is broken #157

@brandon-fryslie

Description

@brandon-fryslie

This is the issue fixed by this PR: tarjoilija/zgen#87

Currently, in zgenom, prezto modules are always loaded last. This causes the prezto modules to overwrite any conflicting names (aliases, functions, variables, etc) from the custom modules a user has loaded. Additionally, it wipes out all custom keybindings defined in any other plugins via a call to bindkey -d in editor/init.zsh in prezto.

I'd be pretty surprised if any user actually wanted this behavior, and since I didn't find an existing GitHub issue, my guess is the number of users using zgenom and prezto together is pretty low. I think it's probably safe to change the behavior and be done with it. However I could see wanting this behind some sort of flag, if you prefer backward compatibility with existing behavior.

My existing PR for zgen won't fix the issue in zgenom but I'd be happy to contribute a PR to zgenom if you are cool with the change in behavior overall. I was maintaining a fork of zgen to use with my tool rad-shell: https://github.com/brandon-fryslie/rad-shell. I'd rather not do that with zgenom, but right now any use of prezto breaks a decent amount of stuff. I'm migrating to zgenom and I believe this is the only blocker.

Thanks for all your work! Really appreciate it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions