Open leonfeng opened 2 days ago
You should be able to manage Windows configs with .chezmoiignore
and templates, there is no need for symlinks.
I believe that what @leonfeng is looking for is running chezmoi
once from their WSL instance where they have placed symlinks of Windows configuration files somewhere in that instance.
I don't see this being implemented because this makes chezmoi apply
even less predictable in behaviour:
--follow
, any symlinks will be removed and the files will be written instead.Additionally, on Windows/WSL you have the fact that Windows files use CRLF newlines and Linux — even under WSL — uses LF newlines.
Is your feature request related to a problem? Please describe.
I use WSL on Windows 11. The vast majority of my dotfiles sit in my Linux home folder. However, there are a few Windows config files that I'd like Chezmoi to manage.
So far, I have symlinked to and
chezmoi add --follow
ed these Windows config files. But whenapply
ing, Chezmoi overwrites the Linux symlinks instead of following them.Describe the solution you'd like
A
--follow
flag will allowchezmoi apply
to selectively overwrite the target files of the symlinks and not the symlinks themselves.Describe alternatives you've considered
chezmoi add
requires the files to be in my Linux home folder so I can't add the Windows config files directly.Additional context
Right now I'm copying these config files between Windows and Linux each time there's a change, and it gets old very quickly. Thank you for reading my feature request!