From d15ee60ca7ad62004c5e036203f095cc27660f90 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sun, 10 Apr 2022 22:21:41 +0200 Subject: Introduce a new macro (%p) representing the parent value of a given key --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a4efa6f..ae52d21 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,9 @@ corresponding values. Currently the following macros are supported: - **%h** - the home directory of the user running *etoolkit* (~/) -- **%i** - the names of the instance that is about to be loaded +- **%i** - the name of the instance that is about to be loaded + +- **%p** - the parent value (for the same key) - **%u** - the username of the user running *etoolkit* (*getpass.getuser()*) @@ -234,16 +236,16 @@ or the *instances* structure being loaded from a diferent configuration file "general": { }, "instances": { - "default": { - "ETOOLKIT_PROMPT": "(%i)" + "_default": { + "ETOOLKIT_PROMPT": "(%i)", + "PYTHONPATH": "/home/user/%i/python", }, "dev": { - "ETOOLKIT_PARENT": "default", - "PYTHONPATH": ":/home/user/.pythonpath", - "DB_CONNECTION": "enc-val$1$Y/TBb1F3siHTw6qZg9ERzZfA8PLPf2CwGSQLpu9jYWw=$FT5tS9o+ABvsxogIXpJim16Gz5SVtV8=" + "ETOOLKIT_PARENT": "_default", + "PYTHONPATH": "%p:/home/user/%i/.pythonpath", }, "secret": { - "ETOOLKIT_PARENT": "default", + "ETOOLKIT_PARENT": "_default", "ETOOLKIT_SENSITIVE": ["PASSWORD"], "GNUPGHOME": "%h/private/.gnupg", "PASSWORD": "enc-val$1$vIBcoCNiYrsDLtF41uLuSEnppBjhliD0B8jwcBJcj/c=$KwOGe/y1dlxktDaCnJPIVNuaQ4Q7yNo=" -- cgit v1.3