diff --git a/src/shell/config.rs b/src/shell/config.rs index 526adb9..89ab380 100644 --- a/src/shell/config.rs +++ b/src/shell/config.rs @@ -16,6 +16,7 @@ pub struct SqishConf { pub aliases: HashMap, pub hotkeys: HashMap, pub init: String, + pub env: HashMap, } impl SqishConf { @@ -54,12 +55,16 @@ impl SqishConf { let hotkeys_yaml = &sqishrc["hotkeys"]; let hotkeys = Self::yaml_dict2hashmap(hotkeys_yaml); + let env_yaml = &sqishrc["env"]; + let env = Self::yaml_dict2hashmap(env_yaml); + let mut out_conf = SqishConf { promptline: out_str.clone(), promptline_base: out_str, aliases: aliases, hotkeys: hotkeys, init: startup, + env: env, }; out_conf.handle_rgb();