Another issue is that it looks like would start a new history file only when a new shell is started.  Some people log in fresh every day, but I&#x27;ve got terminal windows on my home machine that have been sitting around for many months...<p>I guess you&#x27;d have to set the history-size etc large enough to hopefully last for the maximum expected shell run-time.<p>EDIT: hmm, the man page says you can just unset HISTFILESIZE or set it to a non-numeric&#x2F;negative value to avoid truncating the history file at all.