-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…384) * Translate custom commands and aliases to zh-CN from commit: 218f600 * Some proofreading and retouching * Change locale name * Add aliases translation
- Loading branch information
Showing
24 changed files
with
404 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 别名 | ||
|
||
Nushell 中的别名提供了一种简单的文本替换方式,这允许你为一个较长的命令创建一个简写名称,包括其默认参数。 | ||
|
||
例如,让我们创建一个名为 `ll` 的别名,它将展开为 `ls -l`。 | ||
|
||
```bash | ||
> alias ll = ls -l | ||
``` | ||
|
||
我们可以通过别名来调用它: | ||
|
||
```bash | ||
> ll | ||
``` | ||
|
||
一旦我们这样做了,就如同我们输入了 `ls -l` 一样。这也允许我们传入标志或位置参数。例如,我们现在也可以这样写: | ||
|
||
``` | ||
> ll -a | ||
``` | ||
|
||
可得到与输入了`ls -l -a`一样的结果。 | ||
|
||
## 持久化 | ||
|
||
关于如何持久化别名,以便在你启动 Nushell 时它们是可用的,请参考[配置章节](configuration.md)。 |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.