mirror of
https://github.com/nushell/nushell.git
synced 2024-11-30 04:14:17 +01:00
cargo fmt
This commit is contained in:
parent
e1581ec156
commit
c5b8abbcd3
@ -31,7 +31,7 @@ impl DirectorySpecificEnvironment {
|
|||||||
{
|
{
|
||||||
return Some(PathBuf::from(&dir));
|
return Some(PathBuf::from(&dir));
|
||||||
}
|
}
|
||||||
None
|
None
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
} else {
|
} else {
|
||||||
|
3
crates/nu-cli/src/env/environment_syncer.rs
vendored
3
crates/nu-cli/src/env/environment_syncer.rs
vendored
@ -51,8 +51,7 @@ impl EnvironmentSyncer {
|
|||||||
// that aren't loaded from config.
|
// that aren't loaded from config.
|
||||||
environment.add_env(&name, &value, false);
|
environment.add_env(&name, &value, false);
|
||||||
|
|
||||||
environment
|
environment.maintain_directory_environment().ok();
|
||||||
.maintain_directory_environment().ok();
|
|
||||||
|
|
||||||
// clear the env var from the session
|
// clear the env var from the session
|
||||||
// we are about to replace them
|
// we are about to replace them
|
||||||
|
Loading…
Reference in New Issue
Block a user