Fix zsh history corrupt To fix it run the following commands: cd ~ mv .zsh_history .zsh_history_bad strings .zsh_history_bad > .zsh_history fc -R .zsh_history