Recalling and editing previous prompt

I use bash/zsh a lot, and often modify a previous command slightly and run again by just typing up-arrow (which copies the previous command to the current prompt) and editing it. It would be great to be able to do the same with chatgpt. Maybe this is already possible?