W3cubDocs

/Nushell

hide for core

Hide definitions in the current scope.

Signature

> hide {flags} (module) (members)

Parameters

  • module: Module or module file
  • members: Which members of the module to import

Input/output types:

input output
nothing nothing

Examples

Hide the alias just defined

>aliaslll=ls-l;hidelll

Hide a custom command

>defsay-hi [] { echo'Hi!' };hidesay-hi

Notes

Definitions are hidden by priority: First aliases, then custom commands.

This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html

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