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