Write/reload bash history on each command.

This might help working with multiple tabs.