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.
To reproduce:
Add save.fish to ~/.config/fish/functions
function save
echo "- cmd:" $argv >> ~/.config/fish/fish_history
echo " when:" (date "+%s") >> ~/.config/fish/fish_history
history --merge
end
Open a new shell and type the following
test appears below ls in the history, e.g.
fish, version 2.2.0-118-gaee71b5
Expected result: After
history --mergecommands in history should be shown in chronological order by thehistorycommandActual result: merged commands are shown after commands from the current session.
To reproduce:
Add
save.fishto~/.config/fish/functionsOpen a new shell and type the following
test appears below ls in the history, e.g.
fish, version 2.2.0-118-gaee71b5