From 144d55a5becf73d2489880e025cc13fd59c7414b Mon Sep 17 00:00:00 2001 From: ismay <7355199+ismay@users.noreply.github.com> Date: Wed, 12 Jun 2024 06:56:20 +0200 Subject: [fish] Merge history before searching (#3852) Co-authored-by: Junegunn Choi --- shell/key-bindings.fish | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shell/key-bindings.fish') diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index d1db09bc..7f14c0d0 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -62,6 +62,11 @@ function fzf_key_bindings set -l FISH_MAJOR (echo $version | cut -f1 -d.) set -l FISH_MINOR (echo $version | cut -f2 -d.) + # merge history from other sessions before searching + if test -z "$fish_private_mode" + builtin history merge + end + # history's -z flag is needed for multi-line support. # history's -z flag was added in fish 2.4.0, so don't use it for versions # before 2.4.0. -- cgit v1.2.3