Keep the environment properly set. (#3072)

* Revert "fix prompts on startup (#3056)"

This reverts commit b202951c1d.

* Ensure environment variables synced with global internal Nu Scope.
This commit is contained in:
Andrés N. Robalino
2021-02-17 21:56:14 -05:00
committed by GitHub
parent 892aae267d
commit 08e7d0dfb6
6 changed files with 233 additions and 53 deletions

View File

@ -127,6 +127,10 @@ impl NuConfig {
return Some(env_vars.clone());
}
if let Some(env_vars) = vars.get("PATH") {
return Some(env_vars.clone());
}
None
}
}