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

Subscribe to receive free email updates:

0 Response to "How to Fix zsh: corrupt history file /home/danil/.zsh_history"

Post a Comment

1. Berikan Komentar yang Relevan
2. Tidak Mengandung SARA
3. Berkomentar yang Sopan

Konsultasi Aplikasi