From 2b3998d79ed7513f281a64dfec1f215719088ffc Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Thu, 1 Dec 2016 08:02:25 +0100 Subject: [PATCH] Updated Configuration (markdown) --- Configuration.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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: