abbr: add Chinese translation (#8168)

This commit is contained in:
千玄子
2022-07-01 20:06:11 +08:00
committed by GitHub
parent df0ad135f9
commit b3c24bd62a

21
pages.zh/linux/abbr.md Normal file
View File

@@ -0,0 +1,21 @@
# abbr
> 管理 fish shell 的缩写。
> 用户定义的词在输入后会被较长的短语替换。
> 更多信息:<https://fishshell.com/docs/current/cmds/abbr.html>.
- 添加一个新缩写:
`abbr --add {{缩写名}} {{命令}} {{命令参数}}`
- 重命名一个已有的缩写:
`abbr --rename {{旧缩写名}} {{新缩写名}}`
- 清除一个已有的缩写:
`abbr --erase {{缩写名}}`
- 用 SSH 导入另一台主机上定义的缩写:
`ssh {{主机名}} abbr --show | source`