How to fix and recover a “corrupt history file” in zsh?

今天zsh遇到 以下的bug.

zsh: corrupt history file /home/myusername/.zsh_history

在網上搜的解決方案,記錄一下:

mv .zsh_history .zsh_history_bad
strings .zsh_history_bad > .zsh_history
fc -R .zsh_history

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章