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

PREVIOUS NEXT
Code Example
Shell :: uninstall qgis ubuntu 20.04 
Shell :: linux check used space in folder 
Shell :: stop localhost port 
Shell :: wget clone entire website 
Shell :: how to change a commit message after push 
Shell :: install pecl ubuntu 
Shell :: reset branch on local git 
Shell :: force git to use ssh 
Shell :: @react-navigation/stack install 
Shell :: linux screen brightness command line 
Shell :: how to start apache2 server 
Shell :: install lightshot on ubuntu 
Shell :: run a nuget package restore to generate this file 
Shell :: brew install npm 
Shell :: install sshuttle ubuntu 
Shell :: How to upload a files to a repository on github using gitbash 
Shell :: install libssl1.0 
Shell :: apply last stash git 
Shell :: pip command to install xlrd version 1.2.0 
Shell :: conda command not found linux 
Shell :: delete conda from machine 
Shell :: how to open matlab in ubuntu 
Shell :: brew restart apache 
Shell :: ubuntu install tree 
Shell :: npm does not support Node.js v10.24.0 
Shell :: bash list process on port 
Shell :: how to delete deployments in kubernetes 
Shell :: how to install yarn 
Shell :: ubuntu install ssh server 
Shell :: format usb using cmd 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =