kolejne zmiany, dużo, zebrało się
This commit is contained in:
11
bin/zsh_history_fix
Executable file
11
bin/zsh_history_fix
Executable file
@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
|
Reference in New Issue
Block a user