Skip to content

Instantly share code, notes, and snippets.

@rjp2525
Created January 16, 2022 19:16
Show Gist options
  • Save rjp2525/c76deccdce1976ca0e211b60ce271fef to your computer and use it in GitHub Desktop.
Save rjp2525/c76deccdce1976ca0e211b60ce271fef to your computer and use it in GitHub Desktop.
Fix and recover zsh: corrupt history file /home/…/.zsh_history error
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