forked from extern/nushell
the initial setup-commands of nushell were executed without loading environment variables this resulted in the PATH not being available at this point until an external command was run once which resulted in env_vars being added let run_result = run_block(&prompt_block, &context, InputStream::empty()).await; Co-authored-by: alexhk <alexhk@protonmail.com>
This commit is contained in:
parent
840bd98e01
commit
f0c7c1b500
@ -214,6 +214,9 @@ pub async fn cli(mut context: EvaluationContext, options: Options) -> Result<(),
|
||||
// Give ourselves a scope to work in
|
||||
context.scope.enter_scope();
|
||||
|
||||
let env = context.get_env();
|
||||
context.scope.add_env_to_base(env);
|
||||
|
||||
let history_path = nu_engine::history_path(&configuration);
|
||||
let _ = rl.load_history(&history_path);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user