summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUbiquitous Photon <39134173+UbiquitousPhoton@users.noreply.github.com>2022-05-19 22:04:45 +0100
committerGitHub <noreply@github.com>2022-05-19 21:04:45 +0000
commitcd2a3ab7d553f5d909f0e9412a0b4140a0c695d4 (patch)
tree1a7407937a74e876e2045fe76edec6b04c597742
parentb2782110ff81dc4949e72e4b06c09fa1a008c7e4 (diff)
Add fish shell to key binding docs (#418)
Add the missing fish shell part into the documentation for ATUIN_NOBIND. Binding to up is pretty problematic in fish, as if you want to navigate the pager for auto-suggestions, you tend to get a bit stuck.
-rw-r--r--docs/key-binding.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/key-binding.md b/docs/key-binding.md
index c8776741..7a968030 100644
--- a/docs/key-binding.md
+++ b/docs/key-binding.md
@@ -36,3 +36,13 @@ eval "$(atuin init bash)"
# bind to ctrl-r, add any other bindings you want here too
bind -x '"\C-r": __atuin_history'
```
+# fish
+
+```
+set -gx ATUIN_NOBIND "true"
+atuin init fish | source
+
+# bind to ctrl-r in normal and insert mode, add any other bindings you want here too
+bind \cr _atuin_search
+bind -M insert \cr _atuin_search
+```