fix and recover a "corrupt history file" in zsh
现象:意外重启后系统报错
1 | zsh: corrupt history file /home/myusername/.zsh_history |
解决:
1 | mv .zsh_history .zsh_history_bad |
参考:
https://superuser.com/questions/957913/how-to-fix-and-recover-a-corrupt-history-file-in-zsh