aboutsummaryrefslogtreecommitdiffstats
path: root/docs/zh-CN/key-binding.md
diff options
context:
space:
mode:
authorBruce Huang <helbingxxx@gmail.com>2022-10-08 11:36:49 +0800
committerGitHub <noreply@github.com>2022-10-08 03:36:49 +0000
commit02049bf68d5389140e62393cd90e310e9e2749e4 (patch)
treeeaa5f6077be80512d20f75ee597a730a40382dac /docs/zh-CN/key-binding.md
parentadd some error messages (#510) (diff)
downloadatuin-02049bf68d5389140e62393cd90e310e9e2749e4.zip
update zh-CN docs (#539)
* update zh-CN docs * update zh-CN docs * update zh-CN docs * update zh-CN docs
Diffstat (limited to 'docs/zh-CN/key-binding.md')
-rw-r--r--docs/zh-CN/key-binding.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/zh-CN/key-binding.md b/docs/zh-CN/key-binding.md
index ea93032b..3e7f2f95 100644
--- a/docs/zh-CN/key-binding.md
+++ b/docs/zh-CN/key-binding.md
@@ -1,4 +1,4 @@
-# 键绑定
+# 键位绑定
默认情况下, Atuin 将会重新绑定 <kbd>Ctrl-r</kbd> 和 `up` 键。如果你不想使用默认绑定,请在调用 `atuin init` 之前设置 ATUIN_NOBIND
@@ -35,3 +35,14 @@ eval "$(atuin init bash)"
# 绑定到 ctrl-r, 也可以在这里添加任何其他你想要的绑定方式
bind -x '"\C-r": __atuin_history'
```
+
+# fish
+
+```
+set -gx ATUIN_NOBIND "true"
+atuin init fish | source
+
+# 在 normal 和 insert 模式下绑定到 ctrl-r,你也可以在此处添加其他键位绑定
+bind \cr _atuin_search
+bind -M insert \cr _atuin_search
+```