Open the most recent command for editing and then run it. More information: https://manned.org/fc.
fc
fc -e 'emacs'
fc -l
fc -l -r
fc number
fc '416' '420'
fc --help