remove cache-dir from default NU_LIB_DIRS

This commit is contained in:
Darren Schroeder 2024-06-11 08:09:34 -05:00
parent 8ae40af674
commit 16eca56bdc

View File

@ -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()),
]),
);