mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 05:13:56 +01:00
378 B
378 B
title | layout | version |
---|---|---|
let-env | command | 0.59.1 |
Create an environment variable and give it a value.
Signature
> let-env (var_name) (initial_value)
Parameters
var_name
: variable nameinitial_value
: equals sign followed by value
Examples
Create an environment variable and display it
> let-env MY_ENV_VAR = 1; $env.MY_ENV_VAR