3 ms·
Just a general recommendation from someone who keeps a long history: if your shell loads a histfile, don't let it grow unbounded. It isn't massive, but there's
by abathur 3y ago
Just a general recommendation from someone who keeps a long history: if your shell loads a histfile, don't let it grow unbounded.
It isn't massive, but there's real shell startup latency associated with loading lines from your histfile. A few hundred isn't really noteworth, but tens and eventually hundreds of thousands of lines can add up.
(In my case, i store them in a database and I synthesize histfiles from the db. Keeping the permanent storage in a separate file also probably works.)
- m463 3y agoI think histappend might help Even if it were slower, I also think the overhead of something like that is more than made up for by the help it provides.