if you've got a zsh: corrupt history file /home/josh/.histfile: run this: # 1. Move the broken file to a temporary name mv ~/.histfile ~/.histfile_broken # 2. Use 'strings' to extract only the readable text and rebuild the file strings ~/.histfile_broken > ~/.histfile # 3. Reload your shell to see if it's happy fc -R ~/.histfile