2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: hide
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
|
|
|
|
|
|
|
Hide symbols in the current scope
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> hide (pattern)```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `pattern`: import pattern
|
|
|
|
|
2022-02-21 18:26:00 +01:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Hide the alias just defined
|
|
|
|
```shell
|
|
|
|
> alias lll = ls -l; hide lll
|
|
|
|
```
|
|
|
|
|
|
|
|
Hide a custom command
|
|
|
|
```shell
|
|
|
|
> def say-hi [] { echo 'Hi!' }; hide say-hi
|
|
|
|
```
|
|
|
|
|
|
|
|
Hide an environment variable
|
|
|
|
```shell
|
|
|
|
> let-env HZ_ENV_ABC = 1; hide HZ_ENV_ABC; 'HZ_ENV_ABC' in (env).name
|
|
|
|
```
|