mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-30 12:15:56 +01:00
e05c19d0ff
* Add Chinese documentation translation * Fix spelling mistakes
20 lines
476 B
Markdown
20 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).
|