mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 18:33:50 +01:00
Restore overwritten vals code
This commit is contained in:
parent
727af8ca4e
commit
233d864f47
12
crates/nu-cli/src/env/environment.rs
vendored
12
crates/nu-cli/src/env/environment.rs
vendored
@ -64,12 +64,12 @@ impl Environment {
|
||||
self.remove_env(&k);
|
||||
});
|
||||
|
||||
// self.direnv
|
||||
// .overwritten_values_to_restore()?
|
||||
// .iter()
|
||||
// .for_each(|(k, v)| {
|
||||
// self.add_env(&k, &v.to_string_lossy(), true);
|
||||
// });
|
||||
self.direnv
|
||||
.overwritten_values_to_restore()?
|
||||
.iter()
|
||||
.for_each(|(k, v)| {
|
||||
self.add_env(&k, &v.to_string_lossy(), true);
|
||||
});
|
||||
|
||||
self.direnv.env_vars_to_add()?.iter().for_each(|(k, v)| {
|
||||
// std::env::set_var(k, v);
|
||||
|
Loading…
Reference in New Issue
Block a user