twpayne/chezmoi

Use regular file target with symlink mode enabled

Closed this issue · 2 comments

There are some files I'd like to apply as regular files, while symlink mode is enabled in .chezmoi.toml. How to do this with chezmoi?

This is not possible. The mode is a global setting. The way to achieve this is to use the normal ("file") mode and explicitly create symlinks with symlink_ when you need them.

Okay, I thought there is something like regular_ prefix to create regular file explicitly.