Topic: https://brettterpstra.com/2019/08/29/shell-tricks-a-random-selection/
hide preview

What's next? verify your email address for reply notifications!

unverified 5y, 163d ago

In Bash, you can use M-. (Option-period) to add the last argument of the previous command to the current command line.

!$ does the same thing.

$ mkdir /path/to/new/dir $ cd !$

remark link
hide preview

What's next? verify your email address for reply notifications!

unverified 5y, 103d ago

Pressing opt-. multiple times goes back through the history though.

hide preview

What's next? verify your email address for reply notifications!

unverified 5y, 202d ago

Why is

open -a "Finder" "path"

better (or different) than

open -R "path"
remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 5y, 201d ago

Same thing.

hide preview

What's next? verify your email address for reply notifications!