Make sure the history file only contains the last message

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>