atuin/docs/zh-CN/shell-completions.md
ZhiHong Li e05c19d0ff
Add Chinese documentation translation & Fix spelling mistakes (#373)
* Add Chinese documentation translation

* Fix spelling mistakes
2022-05-01 09:25:12 +01:00

19 lines
476 B
Markdown

# `atuin gen-completions`
Atuin 的 [Shell 补全](https://en.wikipedia.org/wiki/Command-line_completion) 可以通过 `gen-completions` 子命令指定输出目录和所需的 shell 来生成。
```
$ atuin gen-completions --shell bash --out-dir $HOME
Shell completion for BASH is generated in "/home/user"
```
`--shell` 参数的可能值如下:
- `bash`
- `fish`
- `zsh`
- `powershell`
- `elvish`
此外, 请参阅 [支持的 Shells](./README.md#支持的-Shells).