bash: `yank-last-arg`

TLDR; <Meta-.> adds then cycles through the last argument to previous commands

The yank-last-arg bash command for manipulating the history will not only add the last argument from the previous command to the currently edited command line, but running it again will cycle back through the history replacing that argument with the last argument from earlier and earlier commands.

To type <Meta-.> try:

Published on: 06 Jun 2022