bash: Keeping bash history in sync on disk and between multiple terminals