diff --git a/Configuration.md b/Configuration.md index 4970ee4..4897f4a 100644 --- a/Configuration.md +++ b/Configuration.md @@ -41,6 +41,26 @@ key = ${env:VAR:fallback value} key = ${xrdb:KEY:fallback value} ~~~ +## Inheritance +Values can be inherit from another section by defining the parameter `inherit = section/base`. +All undefined keys will be cloned. +~~~ ini +[section/base] +foo = 1 +bar = 0.15 +baz = true + +[section/child] +inherit = section/base +baz = false + +; Result +[section/child] +foo = 1 +bar = 0.15 +baz = false +~~~ + ## Custom variables ~~~ ini ; You can create your own local variables, for example: