setopt SHARE_HISTORY

Category: Terminal Configuration

setopt SHARE_HISTORY

Share command history between all open zsh sessions

By default, each zsh session has its own history. SHARE_HISTORY writes and reads the history file in real time across all terminals. A command typed in one tab is immediately available via Ctrl+R in another.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.