Open Shaked opened 3 years ago
I am not sure - I haven't experienced this. The only reasonable explanation I can think of is that the sqlite process which writes the history is being terminated before it manages to commit all the changes it's made.
Or something else is fiddling with your history database file.
If it is the first thing I would suggest looking into how you can control when sqlite commits changes to the database on disk. I don't know a lot about this, because I haven't encountered this problem, but maybe there is either a pragma you could issue or some command line arg to get it to write stuff down more frequently.
Sometimes when I restart my mac, open termianl and lookup my zsh history, I can't find commands that used in my previous session before restarting.
Any idea why this happens? Am I missing something?
Thank you