Skip to content

Copy ZDOTDIR if configured#183

Open
Alveel wants to merge 1 commit intosbstp:masterfrom
Alveel:zdotdir
Open

Copy ZDOTDIR if configured#183
Alveel wants to merge 1 commit intosbstp:masterfrom
Alveel:zdotdir

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