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!
More Posts related to zsh,
- 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
More Posts:
- macOS: Remove Desktop or Documents Folder from iCloud Drive Syncing - MacOS
- [Solution] macOS Big Sur Installation: There is not enough free space, Additional Space Required - MacOS
- Download interrupted: Unknown Host dl-ssl.google.com Error Android SDK Manager - Android
- Android Emulator] ##KBD: Full queue, lose event Error Logs - Android
- How to install Python on Ubuntu - Ubuntu
- Minecraft Fix: Error: UNKNOWN code: Deep Ocean - Something went wrong in the login process - Windows
- Fix bash: script.sh: Permission denied Error - Bash
- cURL Example using IP (IPv4 and IPv6) address and Port - cURL