zsh corrupt history file

#!/usr/bin/env zsh
# George Ornbo (shapeshed) http://shapeshed.com
# License - http://unlicense.org
#
# Fixes a corrupt .zsh_history file

mv ~/.zsh_history ~/.zsh_history_bad
strings ~/.zsh_history_bad > ~/.zsh_history
fc -R ~/.zsh_history
rm ~/.zsh_history_bad

Are there any code examples left?
New code examples in category Matlab
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
zsh: corrupt history file /home/khayrul/.zsh_history zsh: corrupt history file /home/maxvyr/.zsh_history zsh terminal corrupt file zsh: corrupt history file /home/vacance/.zsh_history zsh: corrupt history file /home/daiyanjs/.zsh_history zsh: corrupt history file /home/neeraj/.zhistory zsh: corrupt history file /home/meysam/.zsh_history zsh: corrupt history file /home/patrick/.zsh_history zsh: corrupt history file / zsh: corrupt history file /home/ganesh/.zsh_history zsh: corrupt history file /home/code/.zsh_history zsh: corrupt history file /home/pp/.zsh_history zsh: corrupt history file /home/erfan/.zsh_history zsh: corrupt history file /home/elinor/.zsh_history corrupt zsh history zsh: corrupt history file /home/francesco/.zsh_history zsh: corrupt history file /home/sayan/.zsh_history zsh: corrupt history file /home/toufiq/.zsh_history zsh: corrupt history file /home/.zsh_history zsh: corrupt history file /home/perso/.zsh_history zsh: corrupt history file /home/cleever/.zsh_history zsh : corrupt history file zsh: corrupt history file /home/bhashkar/.zsh_history fix zsh history corrupt zsh: corrupt history file /home/jahir/.zsh_history zsh: corrupt history file /home/jolekor/.zsh_history zsh corrupt file history zsh: corrupt history file /home/micael/.zsh_history zsh: corrupt history file /home/oliv/.zsh_history zsh_history corrupt zsh: corrupt history file /home/mju/.zsh_history zsh: corrupt history file /home/user/.zsh_history zsh corrupt history zsh: corrupt history file /home/shifat/.zsh_history zsh: corrupt history file /home/mohamed/.zsh_history zsh: corrupt history file /home/ibrah/.zsh_history how to fix my corrupt history file in zsh corrupt history file /zsh zsh corrupt history file $HOME/.zsh_history how to fix zsh: corrupt history file zsh: corrupt history file /home/pinche/.zsh_history zsh: corrupt history file /home/ corrupt history file zsh zsh: corrupt history file /home/m0j0/.zsh_history zsh: corrupt history file /home/pranav/.zsh_history corrupt history file /home/pi/.zsh_history zsh: corrupt history file /home/vagrant/.zsh_history zsh: corrupt history file /home/sao/.zsh_history zsh corrupt history and doesn't work corrupt history file /home/hiepnguyen/.zsh_history zsh: corrupt history file /home/lucasdev/.zsh_history corrupt file .zsh history zsh: corrupt history file /home/logan/.zsh_history zsh: corrupt history file /home/selector/.zsh_history zsh: corrupt history file /home/leularia/.zsh_history zsh: corrupt history file /home/lulu/.zsh_history zsh corrupt history file cannot open firefox zsh corrupt history file' zsh history corrupt zsh: corrupt history file /home/yoavb/.zsh_history zsh: corrupt history file /home/sebastian/.zsh_history zsh: corrupt history file /root/.zsh_history zsh: corrupt history file /home/tanishq/.zsh_history zsh corrupt histiry zsh: corrupt history file /home/marti/.zsh_history zsh: corrupt history file /home/asim/.zsh_history zsh: corrupt history file /home/ashwin97/.zsh_history zsh: corrupt history file /home/rokas/.zsh_history zsh: corrupt history file history fix zsh: corrupt history file /home/jakob/.zsh_history zsh: corrupt history file /home/henrique/.zsh_history zsh: corrupt history file /home/stefan/.zsh_history zsh: corrupt history file /home/godwin/.zsh_history corrupt history file /home/birgizz/.zsh_history zsh: corrupt history file /home/hugov/.zsh_history wsl zsh: corrupt history file /home/hugov/.zsh_history zsh: corrupt history file /home/florin/.zsh_history zsh: corrupt history file /home/roelf/.zsh_history corrupt history file /home/jcorradi/.zsh_history zsh: corrupt history file /home/sid/.zsh_history zsh: corrupt history file .zsh_history zsh: corrupt history file zsh_history zsh: corrupt history file /home/iras/.zsh_history zsh: corrupt history file /home/andrea/.zsh_history zsh: corrupt history file /home/felipejoribeiro/.zsh_history zsh: corrupt history file /home/aidil/.zsh_history corrupt history file codzsh: corrupt history file zsh: corrupt history file zsh: corrupt history file /home/tetar/.zsh_history corrupt history file /.zsh_history zsh: corrupt history file /home/jonathan/.zsh_history zsh: corrupt history zsh corrupt history file
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source