history: add space after command

Hi,
this patch makes history easier to use by adding a space after the inserted command.