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

Copy ZDOTDIR if configured #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Copy ZDOTDIR if configured #183

wants to merge 1 commit into from

Conversation

Alveel
Copy link

@Alveel Alveel commented Nov 24, 2023

Dependent files can be present in ZDOTDIR if the user has configured it. This PR simply copies its contents.

I realise this is not an optimal solution; if you have a lot of plugins in ZDOTDIR, copying it in its entirety may bring considerable overhead.

However, it does effectively solve the reported problem.

This fixes #132

Feedback more than welcome! 🙂

@Alveel Alveel changed the title Copy ZDOTDIR if configured (fixes #132) Copy ZDOTDIR if configured Nov 27, 2023
@Alveel
Copy link
Author

Alveel commented Nov 27, 2023

Perhaps instead we can create a symbolic link to ZDOTDIR? Honestly that sounds pretty logical. I'll see if I can update and test.

@Alveel
Copy link
Author

Alveel commented Nov 28, 2023

After some more thinking and tinkering, using a symbolic link may not be the greatest idea after all. This script would then also overwrite the existing .zshrc. We could consider creating and sourcing .zshrc.kubie, but I think that should be sourced before the user's original .zshrc.

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

Successfully merging this pull request may close these issues.

kubie doesn't restore ZDOTDIR
1 participant