1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

don't add builtins to extras, initEnv() in regular repl

This commit is contained in:
Ben Burdette 2021-12-27 14:06:04 -07:00
parent d0d5890445
commit ff82ba98b4
2 changed files with 4 additions and 19 deletions

View file

@ -901,8 +901,8 @@ void runRepl(
repl->initEnv();
// add 'extra' vars.
std::set<std::string> names;
for (auto & [name, value] : extraEnv) {
// names.insert(ANSI_BOLD + name + ANSI_NORMAL);
names.insert(name);
@ -951,6 +951,7 @@ struct CmdRepl : StoreCommand, MixEvalArgs
auto repl = std::make_unique<NixRepl>(evalState);
repl->autoArgs = getAutoArgs(*repl->state);
repl->initEnv();
repl->mainLoop(files);
}
};