oknozor / toml-bombadil

A dotfile manager with templating
MIT License
232 stars 24 forks source link

[FEATURE] Allow setting file permissions for dotfiles #260

Open svenstaro opened 1 year ago

svenstaro commented 1 year ago

Is your feature request related to a problem? Please describe. I'd like a way to specify final file permissions for my dotfiles. For instance, in git my permissions might be 644 but I might want to have them be 600 in the final location.

Describe the solution you'd like A syntax such as suggested by you a few years back ssh = { source = "ssh", target = ".ssh", permissions = 700 }.

Describe alternatives you've considered It would be possible to use hooks for this though I think that gets quite confusing as the permissions aren't clearly associated with the dot entries.

Additional context https://github.com/oknozor/toml-bombadil/issues/31#issuecomment-688400336