Added a trick to save all terminal windows to .bash_history.