Add a function to save simple command history.