nushell/docs/commands/hide.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

449 B

title layout version
hide command 0.59.0

Hide symbols in the current scope

Signature

> hide (pattern)

Parameters

  • pattern: import pattern

Examples

Hide the alias just defined

> alias lll = ls -l; hide lll

Hide a custom command

> def say-hi [] { echo 'Hi!' }; hide say-hi

Hide an environment variable

> let-env HZ_ENV_ABC = 1; hide HZ_ENV_ABC; 'HZ_ENV_ABC' in (env).name