How to fix and recover zsh: corrupt history file /home/…/.zsh_history error
1 min readFeb 3, 2020
Run the following code to fix error and recover history to new file
cd ~
mv .zsh_history .zsh_history_old
strings .zsh_history_old > .zsh_history
fc -R .zsh_history