I am using iTerm2 (with zsh), and for some reason the history is shared between the different tabs and windows that are open. In most of the cases for me, this is annoying, since I have tabs per specific task, and if I have to redo some commands, I just want to be able to go back (up) in history to retrieve the last action for that window/tab only.
I have no idea how to disable this shared history, I read somewhere that you can enable shared history in zsh, but afaik I have done no such thing.
Can anybody point me in the right direction?
.zshrc? – nathanvda Dec 21 '12 at 11:04.zshrc. – Aram Kocharyan Jan 27 '15 at 03:00.bashrcor your.bash_profile. – VarunAgrawal Aug 11 '16 at 00:17-bash: unsetopt: command not found. Is it possible that this is something tmux related? Afaik I am not using tmux, but I am still experiencing the same problem as OP – TabeaKischka Oct 18 '16 at 16:26zsh. I don't think there is an equivalent fix for Bash. – tripleee Mar 31 '17 at 08:51unsetoptis not a builtin bash command. It does not make sense to execute zsh code in bash. You wouldn't run Perl code in Java either, would you? – user1934428 Feb 09 '24 at 09:27