mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 04:45:39 +00:00
add force_chmod for #304
This commit is contained in:
@@ -19,6 +19,7 @@ Entry | Description | Default
|
||||
`diff_command` | the diff command to use for diffing files | `diff -r -u {0} {1}`
|
||||
`dotpath` | path to the directory containing the dotfiles to be managed by dotdrop (absolute path or relative to the config file location) | `dotfiles`
|
||||
`filter_file` | list of paths to load templating filters from (see [Templating available filters](templating.md#template-filters)) | -
|
||||
`force_chmod` | if true, do not ask confirmation to apply permissions on install | `false`
|
||||
`func_file` | list of paths to load templating functions from (see [Templating available methods](templating.md#template-methods)) | -
|
||||
`ignore_missing_in_dotdrop` | ignore missing files in dotdrop when comparing and importing (see [Ignore missing](usage.md#ignore-missing)) | false
|
||||
`ignoreempty` | do not deploy template if empty | false
|
||||
|
||||
@@ -91,12 +91,15 @@ On `install` the following rules are applied:
|
||||
|
||||
* if `chmod` is specified in the dotfile, it will be applied to the installed dotfile
|
||||
* otherwise the permissions of the dotfile in the `dotpath` are applied.
|
||||
* if the global setting `force_chmod` is set to true dotdrop will not ask
|
||||
for confirmation to apply permission
|
||||
|
||||
On `update`:
|
||||
|
||||
* if the permissions of the file in the filesystem differ from the dotfile in the `dotpath`
|
||||
then the dotfile entry `chmod` is added/updated accordingly
|
||||
|
||||
|
||||
## Symlink dotfiles
|
||||
|
||||
Dotdrop is able to install dotfiles in three different ways
|
||||
@@ -173,7 +176,7 @@ Similar to a `.gitignore` file, you can prefix ignore patterns with an exclamati
|
||||
This so-called "negative ignore pattern" will cause any files that match that pattern to __not__ be ignored,
|
||||
provided they *would have* been ignored by an earlier ignore pattern (dotdrop will warn if that is not the
|
||||
case). This feature allows you to, for example, ignore all files within a certain directory, except for one
|
||||
particular one (see example below).
|
||||
particular one (see example below).
|
||||
|
||||
```yaml
|
||||
config:
|
||||
|
||||
Reference in New Issue
Block a user