Open zkkv opened 3 weeks ago
Then create files for each system, for example Library/Application Support/App/file.conf.tmpl for macOS and dot_config/app/file.conf.tmpl for Linux.
Wouldn't that preserve the original file structure in version control, the very thing I'm trying to avoid?
In that case use a script to install settings.json
to the machine-specific location.
What exactly are you trying to do?
I want to add a
settings.json
file generated by VS Code to Chezmoi but it's stored underUser/profiles/[id]/settings.json
. This means that if I add it to Chezmoi, it will have the same relative structure. I want the file in Git to be simply stored underchezmoi/VSCode/settings.json
.What have you tried so far?
If I change the path manually after adding the file, Chezmoi will think the actual file is not tracked anymore. I need to preserve the original file path but also have a consistent associations between the two files.
Where else have you checked for solutions?