You can also use esc + . instead of !$. I find more natural and useful if you need to fix a typo.
Even better! Thanks
P.S. For posterity, all of these work just as well in zsh.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.