Forget to add the config part
This commit is contained in:
parent
68dc23a15e
commit
643c69623c
@ -16,6 +16,7 @@ pub struct SqishConf {
|
|||||||
pub aliases: HashMap<String, String>,
|
pub aliases: HashMap<String, String>,
|
||||||
pub hotkeys: HashMap<String, String>,
|
pub hotkeys: HashMap<String, String>,
|
||||||
pub init: String,
|
pub init: String,
|
||||||
|
pub env: HashMap<String, String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SqishConf {
|
impl SqishConf {
|
||||||
@ -54,12 +55,16 @@ impl SqishConf {
|
|||||||
let hotkeys_yaml = &sqishrc["hotkeys"];
|
let hotkeys_yaml = &sqishrc["hotkeys"];
|
||||||
let hotkeys = Self::yaml_dict2hashmap(hotkeys_yaml);
|
let hotkeys = Self::yaml_dict2hashmap(hotkeys_yaml);
|
||||||
|
|
||||||
|
let env_yaml = &sqishrc["env"];
|
||||||
|
let env = Self::yaml_dict2hashmap(env_yaml);
|
||||||
|
|
||||||
let mut out_conf = SqishConf {
|
let mut out_conf = SqishConf {
|
||||||
promptline: out_str.clone(),
|
promptline: out_str.clone(),
|
||||||
promptline_base: out_str,
|
promptline_base: out_str,
|
||||||
aliases: aliases,
|
aliases: aliases,
|
||||||
hotkeys: hotkeys,
|
hotkeys: hotkeys,
|
||||||
init: startup,
|
init: startup,
|
||||||
|
env: env,
|
||||||
};
|
};
|
||||||
|
|
||||||
out_conf.handle_rgb();
|
out_conf.handle_rgb();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user