Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.)



I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: