From a5616aea8fa28db6f8f7b1a44e28f90aab3363b7 Mon Sep 17 00:00:00 2001 From: Jamie Quigley Date: Sat, 24 Dec 2022 17:18:44 +0000 Subject: Rework `atuin init` (#652) * Rework `atuin init` This allows users to disable the CTRL-R and Up Arrow bindings, independently from one another * Document --disable-{ctrl-r,up-arrow} * Apply suggestions from code review Co-authored-by: Ellie Huxtable Co-authored-by: Ellie Huxtable --- src/shell/atuin.fish | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/shell/atuin.fish') diff --git a/src/shell/atuin.fish b/src/shell/atuin.fish index 9446907e..727d1377 100644 --- a/src/shell/atuin.fish +++ b/src/shell/atuin.fish @@ -38,18 +38,3 @@ function _atuin_bind_up up-or-search end end - -if test -z $ATUIN_NOBIND - bind \cr _atuin_search - bind -k up _atuin_bind_up - bind \eOA _atuin_bind_up - bind \e\[A _atuin_bind_up - - - if bind -M insert > /dev/null 2>&1 - bind -M insert \cr _atuin_search - bind -M insert -k up _atuin_bind_up - bind -M insert \eOA _atuin_bind_up - bind -M insert \e\[A _atuin_bind_up - end -end -- cgit v1.3.1