Save the last <some configurable number> commands to a history file.
Save the last commands to a history file.