mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 03:55:31 +03:00
fish: add Chinese translation (#11589)
This commit is contained in:
parent
c22cf366c1
commit
51be3f6f21
36
pages.zh/common/fish.md
Normal file
36
pages.zh/common/fish.md
Normal file
@ -0,0 +1,36 @@
|
||||
# fish
|
||||
|
||||
> The Friendly Interactive SHell, 一个设计为用户友好的命令行解释器。
|
||||
> 更多信息:<https://fishshell.com>.
|
||||
|
||||
- 启动交互式 shell 会话:
|
||||
|
||||
`fish`
|
||||
|
||||
- 启动不加载启动配置的交互式 shell 会话:
|
||||
|
||||
`fish --no-config`
|
||||
|
||||
- 执行特定命令:
|
||||
|
||||
`fish --command "{{echo 'fish is executed'}}"`
|
||||
|
||||
- 执行特定脚本:
|
||||
|
||||
`fish {{路径/到/脚本.fish}}`
|
||||
|
||||
- 检查特定脚本是否有语法错误:
|
||||
|
||||
`fish --no-execute {{路径/到/脚本.fish}}`
|
||||
|
||||
- 从 `stdin` 执行特定命令:
|
||||
|
||||
`{{echo "echo 'fish is executed'"}} | fish`
|
||||
|
||||
- 在专用模式下启动交互式 shell 会话,其中 shell 不会访问旧历史记录或保存新历史记录:
|
||||
|
||||
`fish --private`
|
||||
|
||||
- 定义并导出一个在 shell 重启后持续存在的环境变量(内置):
|
||||
|
||||
`set --universal --export {{变量名}} {{变量值}}`
|
Loading…
Reference in New Issue
Block a user