I enjoyed Martin’s article on preserving your shell history. I implemented some of his approaches in my system config.