Save Bash history directly after each command.