Remember history for console
There should be a setting to preserve the history of console commands inside the savegame files. Alternatively it could be stored in a global file, and it could be optional whether it is saved per-profile or globally.
To see previous commands you should just be able to click the arrow keys.
If you want to get fancy, if you type a few letters then use the arrow key it will navigate through a filtered history based on what you've typed.