-->

How To Fix Zsh: Corrupt History File /Home/Danil/.Zsh_History

Assalamualaikum wr wb.
Hello . . .

When i open my zsh, i get this error zsh: corrupt history file /home/danil/.zsh_history

And then i search to google to fix my error

this is solution for your problem.

 # move to home directory
cd

# move the .zsh_history file into another .zsh_history_bad file
mv .zsh_history .zsh_history_bad

# write all printable strings into a new .zsh_history file
strings .zsh_history_bad > .zsh_history

# reload the history
fc -R .zsh_history

finish.

Thanks to https://musalemartin.com/how-to-fix-a-corrupt-history-file-97dcf234e2c4
Sumber https://rafibanget.blogspot.com/

Baca juga: