Don't write to history file for history size of 0.