make writing to .bash_history immediate