.chezmoiroot
and location of other .chezmoi*
files
#3109
-
I was planning to start using The docs instruct to "move the relevant files in to the new root subdirectory manually." So I created Then I ran So this is what seems to be working:
This is the layout I was aiming for:
Is it possible to make this layout work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could probably only do so with symlinks due to the way that |
Beta Was this translation helpful? Give feedback.
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 performscd (cat .chezmoiroot)
.