Expected result: After history --merge commands in history should be shown in chronological order by the history command
Actual result: merged commands are shown after commands from the current session.
Add save.fish to ~/.config/fish/functions
echo "- cmd:" $argv >> ~/.config/fish/fish_history
echo " when:" (date "+%s") >> ~/.config/fish/fish_history
Open a new shell and type the following
test appears below ls in the history, e.g.
fish, version 2.2.0-118-gaee71b5
history --merge to properly interleave items
Finally fixed this. Thanks for reporting it!