If you want to remove all the previous history of the commands that you may have executed on your Mac Terminal, you can do that by following the below commands.
% rm ~/.zsh_history
Careful with the below command, it will remove all sessions history!
% rm -r ~/.zsh_sessions
Restart your Terminal and all the history will be gone!Both the .zsh_history file and .zsh_sessions directory will get re-created as you execute commands on the console.
Have Questions? Post them here!
- Ubuntu zsh: command not found: nano
- Setting up Zsh Syntax Highlighting
- Fix for zsh: command not found: brew
- Fix - zsh: command not found: conda [macOS]
- Resolve - zsh: command not found: code
- How to make zsh as the default shell on Ubuntu
- zsh: exec format error eclipse M1 Mac
- [fix] zsh: illegal hardware instruction python TensorFlow M1/M2 Mac
- Fix zsh: permission denied: script.sh
- zsh: command not found [fix] macOS
- What is HTTP 500 Internal Server Error Code on web browsers - HowTos
- Keyboard shortcuts to format Source code in Microsoft Visual Studio Code IDE - Microsoft
- Sorting an array using Bubble Sort in Python Programming - Python
- No CPU ABI system image available for this target Error Android Virtual Device - Android
- How to take screenshot on Android - Android
- How to stop/start/restart apache server using command [Ubuntu] - Ubuntu
- W3 : character data is not allowed here html validation error - Html
- VS Code: The source path must be contained in the project root folder. - Java