Open RokasUrbelis opened 4 years ago
It shows the number of commands in history. When your history gets truncated, the number goes down.
how to fix it, modify HISTSIZE not work
You will probably need to increase your HISTFILESIZE
as well.
From: https://kevinjalbert.com/more-shell-history/
HISTSIZE
indicates how many commands from your history file are loaded into the shell’s memorySAVEHIST
/HISTFILESIZE
indicates how many commands your history file can hold (you want this equal or larger thanHISTSIZE
)
When the number of commands reaches 10001, it will return to this number every time it is reconnected