After a reboot, I started seeing a message when loading the shell:
zsh: corrupt history file /home/myusername/.zsh_history
How can I recover from this situation and potentially recover some of the history?
file-corruptionzsh
After a reboot, I started seeing a message when loading the shell:
zsh: corrupt history file /home/myusername/.zsh_history
How can I recover from this situation and potentially recover some of the history?
Best Answer
Found a blog post describing a fix that appears to work for me, while restoring my missing history:
Afterwards, you may want to instruct zsh to re-read the history form the recovered history file