Tip for #shell users: if you don't already know about 'Alt+.' then you should! It inserts the last argument of the previous command where you are typing. Press it multiple times to step back through the command history.
Even if you know this, you may not know that if you press it too many times, you can flip the direction (i.e. step forwards instead) by pressing 'Alt+-'.
Finally, if you want e.g. the 2nd argument instead of the last one, press 'Alt+2' before you press 'Alt+.'.
@mattj
> if you don't already know about 'Alt+.' then you should! It inserts the last argument of the previous command where you are typing
Assuming 'Alt+' means hold 'Alt' and press '+', it's not working for me in the Mate Terminal on Fedora Mate. It's just making a series of underscores, that turn into commas.
@strypey
Nope, it means "hold Alt plus the character after the '+' ". So the main keypress is 'Alt+.' - in other words, hold Alt and press the '.' (full stop/period) key to insert the previous command's last argument. Pressing it multiple times will step back through the command history. Combine Alt with dash ('-') to flip the search direction.
@mattj this is a cool tip indeed! I'll try it out when I'm next on a physical keyboard