Linux中zsh出现 zsh: corrupt history file /XXX/.zsh_history解决办法

cd到home目录下,找到.zsh_history。

只需打开该文件,找到对应的@@@@相关乱码行,把对应行删除即可。

不需要 rm -f .zsh_history

posted @ 2021-12-08 20:12  Dsp Tian  阅读(1381)  评论(0编辑  收藏  举报