W3cubDocs

/Nushell

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:

input output
any any

Examples

Sources the environment from foo.nu in the current context

>source-envfoo.nu

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/source-env.html