0

Is there a way to merge history from multiple terminal sessions in Fish shell?

I tried to use the command history merge but I get the following error"

history: you cannot use any options with the merge command

Has anyone been able to do this in Fish Shell?

Thanks in advance,

6
  • This askubuntu.com/questions/80371/… will probably also work for the fish shell.
    – vanadium
    Sep 18, 2021 at 9:51
  • If history merge is thinking that you are using additional options (when you aren't), I wonder if you have an alias (or other function) masking history. Can you double-check type -s history? It should point to /usr/share/fish/functions/history.fish. If we're on the right track, then I can convert this into an answer. Otherwise, we'll keep noodling on it :-) Sep 18, 2021 at 17:24
  • And to answer the last part of your question, history merge works for me. Can you confirm your Fish shell version? Thanks! Sep 18, 2021 at 17:25
  • @NotTheDr01ds I'm using version 3.3.1
    – Oren
    Sep 19, 2021 at 10:02
  • @Oren Did you get a chance to try the type -s history from my previous comment? I see that the error you are receiving was a recent addition to Fish, so I just upgraded one of my test VMs, but I still don't have the same problem. history merge returns without error for me on 3.3.1. Sep 19, 2021 at 17:05

0

You must log in to answer this question.

Browse other questions tagged .