-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #292 from deadc0de6/chmod
Chmod
- Loading branch information
Showing
51 changed files
with
2,939 additions
and
891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Manage system dotfiles | ||
|
||
Dotdrop doesn't allow to handle file owernership (at least not directly). Every file operations (create/copy file/directory, create symlinks, etc) are executed with the rights of the user calling dotdrop. | ||
|
||
Using dotdrop with `sudo` to unprivileged and privileged files in the same *session* is a bad idea as the resulting files will all have messed up owners. | ||
|
||
It is therefore recommended to have two different config files (and thus two different *dotpath*) | ||
for handling these two uses cases: | ||
|
||
For example: | ||
|
||
* one `config-user.yaml` for the local/user dotfiles (with its dedicated *dotpath*, for example `dotfiles-user`) | ||
* one `config-root.yaml` for the system/root dotfiles (with its dedicated *dotpath*, for example `dotfiles-root`) | ||
|
||
`config-user.yaml` is used when managing the user's dotfiles | ||
```bash | ||
## user config file is config-user.yaml | ||
$ ./dotdrop.sh import --cfg config-user.yaml <some-dotfile> | ||
$ ./dotdrop.sh install --cfg config-user.yaml | ||
... | ||
``` | ||
|
||
`config-root.yaml` is used when managing system's dotfiles and is to be used with `sudo` or directly by the root user | ||
```bash | ||
## root config file is config-root.yaml | ||
$ sudo ./dotdrop.sh import --cfg=config-root.yaml <some-dotfile> | ||
$ sudo ./dotdrop.sh install --cfg=config-root.yaml | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.