You are not logged in.

#1 2022-01-08 12:48:01

xanrer
Member
Registered: 2022-01-04
Posts: 38

.zsh_history skips from 1598913264 to 1628418077

Hello there, I was dealing with an unrelated zsh history issue on my computer and realized a huge time gap in my .zsh_history file. The first entry was from 1598913264 (over a year ago) the second was from 1628418077 (five months ago) anything in between is lost like it never logged but I know it logged because at the time I was using my computer without a problem so it probably corrupted later. My $HISTSIZE returns 50000 but there are only 750+ entries in my .zsh_history so it's not a matter of insufficient size.

I'm assuming there is no getting them back but is there at least a way to know what caused that?

Here is my .zshrc: https://dpaste.com/GPNFEVT7X

Offline

#2 2022-01-08 14:57:49

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: .zsh_history skips from 1598913264 to 1628418077

https://unix.stackexchange.com/question … sh-history
Since OMZ (of course…) messes with this:
https://www.reddit.com/r/zsh/comments/f … istoryzsh/
And apparently there was some forth and back w/ share_history that may or not fall into the relevant time frame, https://github.com/ohmyzsh/ohmyzsh/issues/9430

It's hard (impossible) to say what ultimately has caused this, but in doubt, when things w/ zsh go wrong, it's usually OMZ…

Offline

#3 2022-01-08 16:29:21

xanrer
Member
Registered: 2022-01-04
Posts: 38

Re: .zsh_history skips from 1598913264 to 1628418077

I see hmm thanks for looking into it.

Offline

Board footer

Powered by FluxBB