From f6918d9d1391d32e1b6ddcc104c659d5573ee6e1 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Fri, 31 May 2024 03:32:26 +0900 Subject: [PATCH] fix(bash): fix a workaround for bash-5.2 keybindings (#2060) --- crates/atuin/src/shell/atuin.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/atuin/src/shell/atuin.bash b/crates/atuin/src/shell/atuin.bash index 8eda0a6f..34d9a221 100644 --- a/crates/atuin/src/shell/atuin.bash +++ b/crates/atuin/src/shell/atuin.bash @@ -329,12 +329,12 @@ if [[ $__atuin_bind_up_arrow == true ]]; then bind -m emacs '"\e[A": "\C-x\C-p"' bind -m emacs '"\eOA": "\C-x\C-p"' bind -m vi-insert -x '"\C-x\C-p": __atuin_history --shell-up-key-binding --keymap-mode=vim-insert' - bind -m vi-insert -x '"\e[A": "\C-x\C-p"' - bind -m vi-insert -x '"\eOA": "\C-x\C-p"' + bind -m vi-insert '"\e[A": "\C-x\C-p"' + bind -m vi-insert '"\eOA": "\C-x\C-p"' bind -m vi-command -x '"\C-x\C-p": __atuin_history --shell-up-key-binding --keymap-mode=vim-normal' - bind -m vi-command -x '"\e[A": "\C-x\C-p"' - bind -m vi-command -x '"\eOA": "\C-x\C-p"' - bind -m vi-command -x '"k": "\C-x\C-p"' + bind -m vi-command '"\e[A": "\C-x\C-p"' + bind -m vi-command '"\eOA": "\C-x\C-p"' + bind -m vi-command '"k": "\C-x\C-p"' fi fi