Hacker News new | ask | show | jobs
by kannanmr 1265 days ago
Possible to do global history across sessions in fish? I use multiple zsh sessions (as tabs) in iterm2, and love the fact my commands are available across tabs.
2 comments

not an answer to your question, but an alternative,

whenever I feel that historical command context missing (why does "UP" not give me my command I ran 5 tabs away?!), I run `history merge` and be on my way.

Thanks
`history merge` can be run manually in Fish to force the current session to pickup the global history, or you can use a small plugin to do it automatically:

https://github.com/2m/fish-history-merge

Great, thanks for the plugin pointer.