hide for core
Hide definitions in the current scope.
Command Type
keyword
Signature
> hide {flags} (name) (members)
Parameters
name: Alias, command, type alias, or module to hide.members: Which members of the module to hide.
Input/output types:
| input | output |
|---|---|
| nothing | nothing |
Examples
Hide the alias just defined.
> alias lll = ls -l; hide lllHide a custom command.
> def say-hi [] { echo 'Hi!' }; hide say-hiHide a type alias.
> type Id = int; hide IdNotes
Definitions are hidden by priority: First aliases, then custom commands, then type aliases.
This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html