summaryrefslogtreecommitdiffstats
path: root/zellij-client/src
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-03-01 15:47:52 +0100
committerGitHub <noreply@github.com>2022-03-01 15:47:52 +0100
commit6d653e1521084d633367c6f4d8afc092cb30c17b (patch)
tree8689ab86225f7ddefc4cb108392aa6c1427008a9 /zellij-client/src
parent4f84c36024bd87623eaae67eb073a2bcbeaf9b2d (diff)
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
Diffstat (limited to 'zellij-client/src')
-rw-r--r--zellij-client/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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(),