mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 21:29:43 +00:00
update variables rules doc
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user