As a user, I want to be able to see all previous queries I have made in the shell

I would like to be able to see what were some of the older queries I made incase Ia accidentally clear a shell. Similar to how you can see your older prompts in chatgpt.