Skip to content

.chezmoiroot and location of other .chezmoi* files #3109

Answered by halostatue
2-4601 asked this question in Q&A
Discussion options

You must be logged in to vote

You could probably only do so with symlinks due to the way that .chezmoiroot works. Basically, when running, chezmoi looks at .chezmoiversion first so that it can error out if there is a version mismatch. It then looks at .chezmoiroot and then changes its "base" directory from .chezmoi.workingTree to the directory specified in .chezmoiroot. During most operations, chezmoi would then no longer "see" anything in .chezmoi.workingTree. In effect, it performs cd (cat .chezmoiroot).

Replies: 1 comment

Comment options

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