zsh 如何清空history?


Bash下可以用history -c 清空历史记录。

但是在zsh下这样做会报错:


 ➜  ~  > history -c
fc: event not found: -c
➜  ~  >

zsh怎么清空history呢?

Linux zsh

木哈哈哈,恩 12 years, 1 month ago

 rm .zsh_history

or


 cat /dev/null > .zsh_history

逆袭D软妹 answered 12 years, 1 month ago

Your Answer