4 ms·
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 hi
by anderspitman 8y ago
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.
- s09dfhks 8y agoIterm2 on osx supports sending the same inputs to multiple tabs
- Freaky 8y agozsh has a SHARE_HISTORY option: http://zsh.sourceforge.net/Doc/Release/Options.html http://zsh.sourceforge.net/Doc/Release/Options.html
- makecheck 8y agoNot 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.
- matthewn 8y agoThe sort of global history you want is possible with bash: https://news.ycombinator.com/item?id=3755276 https://news.ycombinator.com/item?id=3755276
- explainplease 8y agoIn fish you can use `history --merge` to merge the current shell's history with other instances of fish.
- hnarayanan 8y agozsh supports this natively (and is the primary reason I switched to it many years ago).