Skip to content

Commit 784d38b

Browse files
Czakihalostatue
authored andcommittedOct 4, 2023
doc: Add information how to ignore cache files in external dependencies
Closes: #3267
1 parent fc56533 commit 784d38b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎assets/chezmoi.io/docs/user-guide/include-files-from-elsewhere.md

+11
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ When using Oh My Zsh, make sure you disable auto-updates by setting
7373
`~/.oh-my-zsh` directory to drift out of sync with chezmoi's source state. To
7474
update Oh My Zsh and its plugins, refresh the downloaded archives.
7575

76+
!!! note
77+
78+
If your external dependency target directory can contain cache files that are
79+
added during normal use, chezmoi will report that files have changed on
80+
`chezmoi apply`. To avoid this, add the cache directory to your
81+
[`.chezmoiignore`](/reference/special-files-and-directories/chezmoiignore/)
82+
file.
83+
84+
For example, Oh My Zsh may cache completions in `.oh-my-zsh/cache/completions/`,
85+
which should be added to your `.chezmoiignore` file.
86+
7687
## Include a subdirectory with selected files from a URL
7788

7889
Use `include` pattern filters to include only selected files from an archive

0 commit comments

Comments
 (0)
Please sign in to comment.