Something I've been thinking about this week as a vanilla bash user: Does Fish (or zsh, or others) have the ability to maintain some sort of a global command history? I often find myself wanting to run the same command in multiple terminals and currently just copy-paste.
back
6 comments
In fish you can use `history --merge` to merge the current shell's history with other instances of fish.
The sort of global history you want is possible with bash: https://news.ycombinator.com/item?id=3755276
zsh has a SHARE_HISTORY option: http://zsh.sourceforge.net/Doc/Release/Options.html
Not part of a shell but in MacTerm the “command line” window has its own history and it can optionally send the text to all open windows.
Iterm2 on osx supports sending the same inputs to multiple tabs
zsh supports this natively (and is the primary reason I switched to it many years ago).