How to split dotfiles into two remote repos? #2780
-
I share most of my dotfiles on a public repo, but I want to put some of my private dotfiles to a private GitHub repo. Say I have Solution to manage public files and private files (based on the answer of @halostatue ): Use
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is mostly answered with the FAQ "Can Chezmoi Support Multiple Sources or Multiple Source States?". It’s worth noting that, for the most part, all you need is the There are a couple of other options that you can explore:
|
Beta Was this translation helpful? Give feedback.
-
I've written about this here and here |
Beta Was this translation helpful? Give feedback.
This is mostly answered with the FAQ "Can Chezmoi Support Multiple Sources or Multiple Source States?".
It’s worth noting that, for the most part, all you need is the
--config
option as all other file and path options (except--persistent-state
) can be configured in yourchezmoi.$FORMAT
configuration file, simplifying the commands, functions, or aliases required to execute this.There are a couple of other options that you can explore:
You can put your private configuration in an external and then have an
after_
script symlink files to the appropriate location. The downsides here are that the private configuration wouldn’t be templated or automatically placed.You can keep your config…