Skip to content

Commit

Permalink
docs(zsh): ✨ zsh_history issues broke my machine.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguest75 committed May 9, 2024
1 parent 57babb1 commit 309c50c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ZSH_SNIPPETS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ZSH SNIPPETS

## Corrupted zsh_history

WSL crashed on me and left my zsh history in a complete state and failing to run commands.

Performing the following actions fixed my shell.

```sh
cd ~
mv .zsh_history .zsh_history_bad
strings .zsh_history_bad > .zsh_history
fc -R .zsh_history
rm ~/.zsh_history_bad
```

## Resources

* How to fix a corrupt zsh history file [here](https://shapeshed.com/zsh-corrupt-history-file/)

0 comments on commit 309c50c

Please sign in to comment.