Write bash history immediatly.