launcher: keep a history of the previous launched commands