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 :: open port 3000 ubuntu 
Shell :: debian install dos2unix 
Shell :: install react native navigation 
Shell :: git add all tracked files 
Shell :: table markdown github 
Shell :: check git url 
Shell :: change git account terminal 
Shell :: django_filters install 
Shell :: how to install flask_sqlalchemy 
Shell :: Could not install from "HussainAppDataRoaming pm-cache\_npx15208" as it does not contain a package.json file. 
Shell :: Jwt Authentication error Argument 3 passed to LcobucciJWTSignerHmac::doVerify() 
Shell :: install yacc on ubuntu 
Shell :: magento bin install 
Shell :: npm installation in mac 
Shell :: pitivi download ubuntu 
Shell :: powershell get all environment variables 
Shell :: install .deb ubuntu 20.04 
Shell :: git apply stash 
Shell :: grub customizer ubuntu 
Shell :: bash remove characters from end of every line 
Shell :: cmd check if file exists or not 
Shell :: how to install minecraft to ubuntu 
Shell :: bypass login jupyter ubuntu 
Shell :: install storybook angular 
Shell :: npm does not support Node.js v10.19.0 
Shell :: configure your git username/email 
Shell :: linux reload hosts file 
Shell :: yarn: command not found 
Shell :: apt install openssh 
Shell :: install docker on centos 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =