Bash下可以用history -c 清空历史记录。
但是在zsh下这样做会报错:
➜ ~ > history -c
fc: event not found: -c
➜ ~ >
zsh怎么清空history呢?
rm .zsh_history
or
cat /dev/null > .zsh_history
Bash下可以用history -c 清空历史记录。
但是在zsh下这样做会报错:
➜ ~ > history -c
fc: event not found: -c
➜ ~ >
zsh怎么清空history呢?
rm .zsh_history
or
cat /dev/null > .zsh_history