andsens / homeshick

git dotfiles synchronizer written in bash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change file permission after cloning dotfiles

QiangF opened this issue · comments

Hi Everyone,
I want to manage all my customised configuration files in the whole system. One example is /etc/apt/sources.list. Is there a way to set the right permission for these files like etckeeper?
Thank you!

Directly using homeshick: no. This is beyond the scope of homeshick I'm afraid.
You could however run homeshick pull/link with sudo and use umask to get homeshick to create/symlink with the right permissions. Consult the wiki to see how you can symlink files outside your home/ dir.

For the record, here is my wishlist.
anishathalye/dotbot#49
Thank you!

@andsens can you expand more on that, how to use umask for correcting file permissions?