Store history between commands