fish: add Chinese translation (#11589)

pull/23/head
Snowflake 2023-11-26 22:49:26 +08:00 committed by GitHub
parent c22cf366c1
commit 51be3f6f21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 0 deletions

36
pages.zh/common/fish.md Normal file
View 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 {{变量名}} {{变量值}}`