Skip to content

Instantly share code, notes, and snippets.

@Empyritz
Created March 17, 2019 18:24
Show Gist options
  • Select an option

  • Save Empyritz/0e25a3d73a5bb45cb81bf62c98f0af7c to your computer and use it in GitHub Desktop.

Select an option

Save Empyritz/0e25a3d73a5bb45cb81bf62c98f0af7c to your computer and use it in GitHub Desktop.
Esta es la manera de corregir zsh: corrupt history file
To fix it run the following commands
cd ~
mv .zsh_history .zsh_history_bad
strings .zsh_history_bad > .zsh_history
fc -R .zsh_history
@magcCF
Copy link

magcCF commented May 22, 2025

Gracias! Funcionó

@zeligmax
Copy link

Gracias!

@franciscobaca
Copy link

Genio! Tuve este error hoy en Nixos y lo arregle al toque con esto. 💯

Copy link

ghost commented Sep 10, 2025

Funcionó de maravilla y no me elimino ningún comando, un capo ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment