Save each bash command to history after it executes.