export-env
for env> export-env {flags} (block)
block
: the block to run to set the environmentinput | output |
---|---|
nothing | nothing |
Set an environment variable
>export-env { $env.SPAM='eggs' }
Set an environment variable and examine its value
>export-env { $env.SPAM='eggs' };$env.SPAM
eggs
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/export-env.html