kubie icon indicating copy to clipboard operation
kubie copied to clipboard

Copy ZDOTDIR if configured

Open Alveel opened this issue 1 year ago • 2 comments

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 avatar Nov 24 '23 23:11 Alveel

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 avatar Nov 27 '23 09:11 Alveel

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.

Alveel avatar Nov 28 '23 13:11 Alveel