How to Clear Terminal History in Kali Linux | clear_history
- open
~/.zshrc
add the following line
alias clear_history='echo "" > ~/.zsh_history & exec $SHELL -l'
Save and close the file
- Close the console or type
zsh
if you to see the result directly, this will open another zsh shell in the old one - Now you can clear the console by typing
clear_history