Open piegamesde opened 4 years ago
Error handling would be better, but this is a workaround.
You can add a space before a command to avoid adding it to the history.
mv /path/to/corrupted/history/file /path/to/corrupted/history/file_corrupted
# Recover history file.
strings /path/to/corrupted/history/file_corrupted > /path/to/corrupted/history/file
Notice the space before mv
.
Reopen of https://github.com/jimhester/per-directory-history/issues/16