mirror of
https://github.com/nushell/nushell.git
synced 2025-01-23 14:50:09 +01:00
Merge branch 'direnv-rewrite'
This commit is contained in:
commit
1611c7a78b
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