From cd2a3ab7d553f5d909f0e9412a0b4140a0c695d4 Mon Sep 17 00:00:00 2001 From: Ubiquitous Photon <39134173+UbiquitousPhoton@users.noreply.github.com> Date: Thu, 19 May 2022 22:04:45 +0100 Subject: [PATCH] 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. --- docs/key-binding.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/key-binding.md b/docs/key-binding.md index c877674..7a96803 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 +```