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:
parent
d0d5890445
commit
ff82ba98b4
2 changed files with 4 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue