source-env for core

Source the environment from a source file into the current environment.

Signature

> source-env {flags} (filename)

Parameters

  • filename: The filepath to the script file to source the environment from.

Input/output types:

inputoutput
anyany

Examples

Sources the environment from foo.nu in the current context

> source-env foo.nu