Skip to content

Instantly share code, notes, and snippets.

@savio777
Created December 22, 2023 14:57
Show Gist options
  • Save savio777/0ee02a964bfd3da19d34b2be400867e9 to your computer and use it in GitHub Desktop.
Save savio777/0ee02a964bfd3da19d34b2be400867e9 to your computer and use it in GitHub Desktop.
zsh: corrupt history
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