Skip to content
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

💡Proposal: Migration script? #62

Closed
pschmitt opened this issue Nov 14, 2021 · 2 comments
Closed

💡Proposal: Migration script? #62

pschmitt opened this issue Nov 14, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@pschmitt
Copy link
Member

pschmitt commented Nov 14, 2021

To enable an easy and painless migration for the deleted zdharma, zsh-packages, zsh-zinit and psprint repos we should consider investing the time into creating either:

  • a one of script that would edit all the remotes of any affected pługins
  • Update zinit self-update to do that perhaps?

The issues I see with either approach are the following:

  • ⚠️ we shouldn't touch the users config file(s). Depending on the setup this might be very tricky to do anyway. A plugin report should be enough.
  • is it even worth the effort? Assuming most of the user-base that's left has already done the migration manually.

Maybe we should provide a script to do this automagically.

Originally posted by @pschmitt in #28 (comment)

@pschmitt pschmitt changed the title To enable an easy and painless migration for all the deleted zdharma, zsh-packages, zsh-zinit and psprint repos we should consider investing the time into creating either: - a one-of script a user can launch to edit all the remotes of affected plugins - or update zinit self-update to that. Adding a --migrate flag seems sensible. 💡Propos: Migration script? Nov 14, 2021
@pschmitt pschmitt changed the title 💡Propos: Migration script? 💡Proposal: Migration script? Nov 14, 2021
@pschmitt pschmitt added this to the zinit 4.0 milestone Nov 14, 2021
@mys721tx
Copy link

A notice on the affected repos should suffice. As soon as the user updates their .zshrc, the new package will be downloaded as missing packages on the next time it is loaded.

@pschmitt pschmitt added the enhancement New feature or request label Nov 19, 2021
@alichtman
Copy link
Member

Setting up zsh configuration files is incredibly user-specific. My setup looks absolutely nothing like the "default" install. I think that this is probably not worthwhile. Worst case, the user blows away their current zinit install and installs fresh following our guide.

is it even worth the effort? Assuming most of the user-base that's left has already done the migration manually.

I'd say no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants