Skip to content

Permissions in externals #2602

Answered by twpayne
miquecg asked this question in Q&A
Nov 30, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

This is occurring because the directories ~/Library and ~/Library/Fonts are implicitly created by .chezmoiexternal and implicitly created directories have default (i.e. non-private permissions).

The fix is to tell chezmoi to manage the directories explicitly. This can be done with:

$ chezmoi add --recursive=false ~/Library ~/Library/Fonts

You'll likely need to add .keep file to the directory in the source state, otherwise git will ignore it:

$ touch $(chezmoi source-path ~/Library/Fonts)/.keep

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@miquecg
Comment options

@miquecg
Comment options

@twpayne
Comment options

@twpayne
Comment options

Answer selected by miquecg
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