How to Fix a Corrupt History File

Musale
Musale
Feb 23, 2017 · 1 min read

I use zsh shell and I love it. Once in a while I have to update my oh my zsh config and then rarely do I come across errors like:

zsh: corrupt history file /home/iris/.zsh_history

and I’m like:

Googled around, ah! Fix is simple

That’s pretty it.

And I was back!

Musale

Written by

Musale

Software Developer | Hobbyist Writer / Reader

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade