From 8bd4d12cfa008f761afb12a8e966f4fb95a47753 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sat, 8 May 2021 14:17:22 +0100 Subject: Add ATUIN_NOBIND (#62) * Add ATUIN_NOBIND * Update docs/key-binding.md ``, what magic Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- src/shell/atuin.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/shell/atuin.bash') diff --git a/src/shell/atuin.bash b/src/shell/atuin.bash index 43de3640..8c35b4f7 100644 --- a/src/shell/atuin.bash +++ b/src/shell/atuin.bash @@ -27,4 +27,6 @@ __atuin_history () preexec_functions+=(_atuin_preexec) precmd_functions+=(_atuin_precmd) -bind -x '"\C-r": __atuin_history' +if [[ -z $ATUIN_NOBIND ]]; then + bind -x '"\C-r": __atuin_history' +fi -- cgit v1.3.1