add the new command to history file