p:: CLI How to fix a corrupt zsh history file.txt { cd ~ mv .zsh_history .zsh_history_bad strings .zsh_history_bad > .zsh_history fc -R .zsh_history }