This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to fix a corrupt zsh history file | |
Occasionally you may find you have a corrupt zsh history file preventing you from using the `fc` command or searching the history. Here's how to fix it. | |
Estimated reading time: 1 minutes | |
Table of contents | |
Corrupt ZSH history file | |
How to fix it | |
Making it a script | |
Corrupt ZSH history file | |
If you use zsh for your shell very occasionally you may find the following message appearing indicating a corrupt history file. This is normally after a reboot. |