Which shell has the ability to share history between multiple devices?

Question: Question:

What kind of shell can handle history correctly even if multiple terminals are opened at the same time?

Since I started using tmux, I wanted to handle the history correctly even in this case, and it seems that it can be realized with bash, but I am asking because I felt that it was a bit too skillful.

Answer: Answer:

In zsh, setopt share_history shares the history between multiple started shells.

Scroll to Top