better output when getting history of last command