Where does zsh on MacOS save history, and how to remove items

zsh on MacOS saves your terminal history to ~/.zsh_history

If you entered a command that you don’t want to remain in your history, edit the file and delete the lines you don’t want to remain in your history, then save. Exist terminal and reopen.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.