$_ also works. I love Alt+. but sadly it doesn’t work on any Mac terminal emulator I’ve found and, even more sadly, I am forced to use a Mac at work.
I haven’t tried !$ so I’m not familiar with its function, but one nice thing about Alt+. is that you’re not limited to the last argument of the most recent command; instead, it allows you to scroll backwards like Ctrl+R.
$_also works. I loveAlt+.but sadly it doesn’t work on any Mac terminal emulator I’ve found and, even more sadly, I am forced to use a Mac at work.I haven’t tried
!$so I’m not familiar with its function, but one nice thing aboutAlt+.is that you’re not limited to the last argument of the most recent command; instead, it allows you to scroll backwards likeCtrl+R.