Circle through last command arguments with Opt-dot

Did you know that you can use previous command arguments in a fast fashion? Consider this scenario:

  • You create a new file with touch some-awesome-file.md
  • Next, you put some content there with echo 'om nom nom' >> some-awesome-file.md

You don’t want to repeat yourself, though: no copy-pasta. The only thing you need (unless you need to adjust your setup) is:

  • Type command: echo 'om nom nom' >> ▓
  • Press Opt .

marks the cursor position.

In OS X you may need to change how Opt / Alt behaves:

This protip has been written in 1073 seconds