I use combination of zsh
with oh-my-zsh
and iTerm2 for development on Mac.
I'm frustrated with the following issue:
The question: How to preserve separated history for every reopened tab?
In my terminal, ZSH, there's a file called ~/. zsh_history , and a similar one for Bash. To remove the command, open that file and remove the entry from the list. Open a new terminal window, and the bad command is gone.
To view all the commands stored in your ZSH history file, use the history command. In most cases, the history command will display an extensive list of all your executed commands. You can pipe the output to commands such as grep to search for a specific command or less to navigate it easily.
Per https://github.com/robbyrussell/oh-my-zsh/issues/2537,
Add unsetopt share_history
to your .zshrc file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With