append history via prompt command in order to create a histroy from all open shells