Try and fix Bash's history problem

It's been months now and Bash is still refusing to save my command
history properly, so the next few commits will be me trying new things
to make it function right.