Home Explore Blog CI



nushell

commands/docs/hide.md
e514170a2bb1f789d6b823e00993ccbf18d3d2761475f800000000030000040c
---
title: hide
categories: |
  core
version: 0.104.0
core: |
  Hide definitions in the current scope.
usage: |
  Hide definitions in the current scope.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `hide` for [core](/commands/categories/core.md)

<div class='command-title'>Hide definitions in the current scope.</div>

## 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
```nu
> alias lll = ls -l; hide lll

```

Hide a custom command
```nu
> def say-hi [] { echo 'Hi!' }; hide say-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

Chunks
77470227 (1st chunk of `commands/docs/hide.md`)
Title: hide - Hide definitions in the current scope
Summary
The `hide` command in Nushell allows you to remove definitions (aliases and custom commands) from the current scope. You can hide specific members of a module or module file, or hide aliases and custom commands that you have defined. It prioritizes hiding aliases before custom commands. It's a parser keyword, so refer to the Nushell documentation for more details.