Open the most recent command and edit it. More information: https://manned.org/fc.
fc
fc -e {{'emacs'}}
fc -l