1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00

update variables rules doc

This commit is contained in:
deadc0de6
2020-11-08 13:10:31 +01:00
parent ba7a3de2bb
commit 0f1d9f1ecc
2 changed files with 7 additions and 2 deletions

View File

@@ -448,8 +448,8 @@ actions:
dateme: date > /tmp/timestamp
```
External variables will take precedence over variables defined within
the source config file.
External/imported variables will take precedence over variables defined
inside the main config file.
Dotdrop will fail if an imported path points to a non-existing file.
It is possible to make non-existing paths not fatal by appending the path with `:optional`

View File

@@ -53,6 +53,11 @@ Here are some rules on the use of variables in configs:
[variables](config-details.md#entry-variables) are templated before
[interpreted variables](config-details.md#entry-dynvariables) are executed
* config files do not have access to variables defined above in the import tree
* `dynvariables` take precedence over `variables`
* profile `(dyn)variables` take precedence over any other `(dyn)variables`
* profile `(dyn)variables` take precedence over profile's included `(dyn)variables`
* external/imported `(dyn)variables` take precedence over
`(dyn)variables` defined inside the main config file
## Symlink dotfiles