Created
January 16, 2022 19:16
-
-
Save rjp2525/c76deccdce1976ca0e211b60ce271fef to your computer and use it in GitHub Desktop.
Fix and recover zsh: corrupt history file /home/…/.zsh_history error
This file contains 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
cd ~ | |
mv .zsh_history .zsh_history_old | |
strings .zsh_history_old > .zsh_history | |
fc -R .zsh_history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment