Created
October 6, 2017 06:15
-
-
Save Pk13055/7cfcf71a74ab803326888fc617a240b6 to your computer and use it in GitHub Desktop.
Fix zsh history corrupt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~; | |
mv .zsh_history .zsh_history_bad; | |
strings .zsh_history_bad > .zsh_history; | |
fc -R .zsh_history; |
Author
Pk13055
commented
Oct 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment