hide-env

For core.

Hide environment variables in the current scope.

Command Type

built-in

Signature

> hide-env {flags} ...rest

Flags

  • --ignore-errors, -i: Do not throw an error if an environment variable was not found.

Parameters

  • ...rest: Environment variable names to hide.

Input/output types:

input output
nothing nothing

Examples

Hide an environment variable.

> $env.HZ_ENV_ABC = 1; hide-env HZ_ENV_ABC; 'HZ_ENV_ABC' in $env
false

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.