[fish] Merge history before searching (#3852)

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
This commit is contained in:
ismayandJunegunn Choi authored and GitHub committed 2024-06-12 13:56:20 +09:00
1 parent 7fc13c5cfd
commit 144d55a5be
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -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.