aboutsummaryrefslogtreecommitdiffstats
path: root/docs/zh-CN/shell-completions.md
diff options
context:
space:
mode:
authorZhiHong Li <joker_lizhih@163.com>2022-05-01 16:25:12 +0800
committerGitHub <noreply@github.com>2022-05-01 09:25:12 +0100
commite05c19d0ff37a900847a6073de0ca05498ebe6d1 (patch)
treea10d866f71fc66046e4638c149efce3b08f77088 /docs/zh-CN/shell-completions.md
parentAdd Russian documentation translation (#365) (diff)
downloadatuin-e05c19d0ff37a900847a6073de0ca05498ebe6d1.zip
Add Chinese documentation translation & Fix spelling mistakes (#373)
* Add Chinese documentation translation * Fix spelling mistakes
Diffstat (limited to 'docs/zh-CN/shell-completions.md')
-rw-r--r--docs/zh-CN/shell-completions.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/zh-CN/shell-completions.md b/docs/zh-CN/shell-completions.md
new file mode 100644
index 00000000..0979dcb0
--- /dev/null
+++ b/docs/zh-CN/shell-completions.md
@@ -0,0 +1,19 @@
+# `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).