remove cache-dir from default NU_LIB_DIRS
This commit is contained in:
parent
8ae40af674
commit
16eca56bdc
|
@ -135,13 +135,6 @@ fn main() -> Result<()> {
|
|||
std::path::PathBuf::new()
|
||||
};
|
||||
|
||||
let default_nushell_cache_path = if let Some(mut path) = nu_path::cache_dir() {
|
||||
path.push("nushell");
|
||||
path
|
||||
} else {
|
||||
std::path::PathBuf::new()
|
||||
};
|
||||
|
||||
let mut default_nu_lib_dirs_path = nushell_config_path.clone();
|
||||
default_nu_lib_dirs_path.push("scripts");
|
||||
engine_state.add_env_var(
|
||||
|
@ -149,7 +142,6 @@ fn main() -> Result<()> {
|
|||
Value::test_list(vec![
|
||||
Value::test_string(default_nu_lib_dirs_path.to_string_lossy()),
|
||||
Value::test_string(default_nushell_completions_path.to_string_lossy()),
|
||||
Value::test_string(default_nushell_cache_path.to_string_lossy()),
|
||||
]),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user