Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

zsh: corrupt history file /home/lan/.zsh_history

zsh: corrupt history file /home/george/.zsh_history
Comment

PREVIOUS NEXT
Code Example
Shell :: check folder sizes linux 
Shell :: forever command not found 
Shell :: blackeye github 
Shell :: pip missingno 
Shell :: ubuntu server scan virus 
Shell :: install pip3 linux 
Shell :: install opera ubuntu terminal command 
Shell :: ubuntu install opencl 
Shell :: git updates were rejected because the tip of your current branch is behind 
Shell :: bash remove empty line 
Shell :: vscode for ubuntu linux 
Shell :: kill port in mac 
Shell :: snap install pycharm 
Shell :: how to check in which brach we are in git 
Shell :: install epel amazon linux 2 
Shell :: heroku error: src refspec master does not match any. 
Shell :: restart nautilus from terminal 
Shell :: restart ssh mac 
Shell :: bash install kubectl 
Shell :: how to know the shell version in ubuntu 
Shell :: remove git 
Shell :: ufw config file location ubuntu 
Shell :: how to convert ts to mp4 with ffmpeg 
Shell :: convert pem to ppk ubuntu 
Shell :: uuid 
Shell :: docker wordpress plugins permissions 
Shell :: No Xcode or CLT version detected! 
Shell :: Install yarn via npm global 
Shell :: how to install kivy in ubuntu 
Shell :: rar unrar mac 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =