Skip to content

How to split dotfiles into two remote repos? #2780

Answered by halostatue
CyrusYip asked this question in Q&A
Discussion options

You must be logged in to vote

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 your chezmoi.$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…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@CyrusYip
Comment options

@CyrusYip
Comment options

Answer selected by CyrusYip
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants