From 6d653e1521084d633367c6f4d8afc092cb30c17b Mon Sep 17 00:00:00 2001 From: a-kenji Date: Tue, 1 Mar 2022 15:47:52 +0100 Subject: add: set `env` var's from config and layout (#1154) Add ability to set `ENVIRONMENT VARIABLES` from the config and the layout files. example: ``` env: ZELLIJ_CONFIG: DEFAULT ``` or ``` env: ZELLIJ_LAYOUT_NAME: BUILD_SESSION ``` If two keys conflict (configuration and layout), then the key from the layout is used. fixes: #1059 --- zellij-client/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'zellij-client/src') diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index 739b6e1d2..b2686cbf8 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -133,6 +133,7 @@ pub fn start_client( .write(clear_client_terminal_attributes.as_bytes()) .unwrap(); envs::set_zellij("0".to_string()); + config.env.set_vars(); let palette = config.themes.clone().map_or_else( || os_input.load_palette(), -- cgit v1.2.3