From d1d0643171875521d206f2d9c568d060369c88d4 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Thu, 13 Feb 2020 13:50:31 -0500 Subject: [PATCH] addition(added a script to run in case zsh history file gets corrupted) --- .local/bin/fix_zsh_history | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .local/bin/fix_zsh_history diff --git a/.local/bin/fix_zsh_history b/.local/bin/fix_zsh_history new file mode 100755 index 00000000..68ca50a0 --- /dev/null +++ b/.local/bin/fix_zsh_history @@ -0,0 +1,6 @@ +#!/bin/zsh + +mv ~/.config/zsh/.history ~/.config/zsh/.bad_history +strings ~/.config/zsh/.bad_history > ~/.config/zsh/.history +fc -R ~/.config/zsh/.history +rm ~/.config/zsh/.bad_history