add command being run to history file