adds a config reset command (#6149)

* moves config files to nu_utils

* fmt

* fix dockerfile

* fix docs
This commit is contained in:
pwygab
2022-08-01 09:44:33 +08:00
committed by GitHub
parent 1086fbe9b5
commit 01386f4d58
12 changed files with 135 additions and 8 deletions

View File

@ -51,6 +51,14 @@ where
ret
}
pub fn get_default_env() -> &'static str {
include_str!("sample_config/default_env.nu")
}
pub fn get_default_config() -> &'static str {
include_str!("sample_config/default_config.nu")
}
pub fn get_ls_colors(lscolors_env_string: Option<String>) -> LsColors {
match lscolors_env_string {
Some(s) => LsColors::from_string(&s),